sourceType
The type of picker interface to be displayed by the controller.
Declaration
var sourceType: UIImagePickerController.SourceType { get set }Discussion
Prior to running the picker interface, set this value to the desired source type. The source type you set must be available and an exception is thrown if it is not. If you change this property while the picker is visible, the picker interface changes to match the new value in this property.
The various source types are listed in the UIImagePickerController.SourceType enumeration. The default value is UIImagePickerController.SourceType.photoLibrary.