0

PHPickerViewController を介して vc をプッシュすることは可能ですか?

私は運がないので、このようにしようとしています:

var configuration = PHPickerConfiguration()
configuration.filter = .any(of: [.images, .livePhotos])
photoPickerController = PHPickerViewController(configuration: configuration)
photoPickerController.delegate = self
present(self.photoPickerController, animated: true)

func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
  //Push segue
  performSegue(withIdentifier: "showAddPost", sender: self)
}
4

1 に答える 1