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
UIImagePickerControllerOriginalImagekey value fromrawInfo.Declaration
Swift
public let type: MediaFilter -
The original UIImage that the user selected from their source. This is equivalent to the
UIImagePickerControllerOriginalImagekey value fromrawInfo.Declaration
Swift
public let originalImage: UIImage? -
The edited image after any croping, resizing, etc has occurred. This is equivalent to the
UIImagePickerControllerEditedImagekey value fromrawInfo.Declaration
Swift
public let editedImage: UIImage? -
This is equivalent to the
UIImagePickerControllerCropRectkey value fromrawInfo.Declaration
Swift
public let cropRect: CGRect? -
The fileUrl of the movie that was picked. This is equivalent to the
UIImagePickerControllerMediaURLkey value fromrawInfo.Declaration
Swift
public let movieUrl: URL? -
This is equivalent to the
UIImagePickerControllerMediaMetadatakey value fromrawInfo.Declaration
Swift
public let metaData: NSDictionary?
View on GitHub
Result Structure Reference