Coordinator
@MainActor
public final class Coordinator : NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate
A coordinator class that acts as the delegate for the UIImagePickerController.
This class handles the events triggered by the image picker, such as when the user captures a photo or video, or cancels the operation.
-
Called when the user finishes picking media with the image picker.
This method processes the selected media (image or video) and calls the appropriate closure in the parent view before dismissing the picker.
Declaration
Swift
@MainActor public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])Parameters
pickerThe image picker controller that was presented
infoA dictionary containing the selected media and related information