79087130

Date: 2024-10-14 17:28:30
Score: 1
Natty:
Report link

From the reference: https://developer.apple.com/videos/play/wwdc2020/10652/. Dismiss the picker inside didFinishPicking function. The below code will dismiss the picker when the cancel button is pressed.

func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
    dismiss(animated: true)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: S.V.Sudarshini