Result

public struct Result

This result object is a only a wrapper around the loosely typed Dictionary returned from UIImagePickerController‘s -imagePickerController:didFinishPickingMediaWithInfo: delegate method. When using the init(source:allow:cameraOverlay:showsCameraControls:didPick:) initializer, the didPick closure passes this convenience struct. If the original Dictionary is needed, it can be found in the rawInfo property.

  • The original Dictionary received from UIPickerController’s -imagePickerController:didFinishPickingMediaWithInfo: delegate method.

    Declaration

    Swift

    public let rawInfo: [UIImagePickerController.InfoKey : Any]
  • The type of media picked by the user, converted to a MediaFilter option. This is equivalent to the UIImagePickerControllerOriginalImage key value from rawInfo.

    Declaration

    Swift

    public let type: MediaFilter
  • The original UIImage that the user selected from their source. This is equivalent to the UIImagePickerControllerOriginalImage key value from rawInfo.

    Declaration

    Swift

    public let originalImage: UIImage?
  • The edited image after any croping, resizing, etc has occurred. This is equivalent to the UIImagePickerControllerEditedImage key value from rawInfo.

    Declaration

    Swift

    public let editedImage: UIImage?
  • This is equivalent to the UIImagePickerControllerCropRect key value from rawInfo.

    Declaration

    Swift

    public let cropRect: CGRect?
  • The fileUrl of the movie that was picked. This is equivalent to the UIImagePickerControllerMediaURL key value from rawInfo.

    Declaration

    Swift

    public let movieUrl: URL?
  • This is equivalent to the UIImagePickerControllerMediaMetadata key value from rawInfo.

    Declaration

    Swift

    public let metaData: NSDictionary?