ImagePickerController

open class ImagePickerController: UINavigationController

Carousell flavoured image picker with multiple photo selections.

  • An Objective-C compatible initializer without appearance configuration.

    Declaration

    Swift

    public convenience init(selectedAssets: [PHAsset])

    Parameters

    selectedAssets

    Preselected image assets that will be highlighted.

  • Returns a newly initialized image picker controller with appearance configuration.

    Declaration

    Swift

    public convenience init(selectedAssets: [PHAsset] = [], configuration: ImagePickerConfigurable? = nil)

    Parameters

    selectedAssets

    Preselected image assets that will be highlighted. Default is an empty array.

    configuration

    Optional appearance configuration. Default is nil.

  • Returns a newly initialized image picker controller with a customized type of camera.

    See more

    Declaration

    Swift

    public convenience init<T: UIViewController>(
    selectedAssets: [PHAsset],
    configuration: ImagePickerConfigurable?,
    cameraType: T.Type) where T: CameraCompatible

    Parameters

    selectedAssets

    Preselected image assets that will be highlighted.

    configuration

    Optional appearance configuration.

    cameraType

    A UIViewController type that conforms to CameraCompatible protocol.

  • Returns a newly initialized image picker controller with a closure for camera configuration.

    See more

    Declaration

    Swift

    public init<T: UIViewController>(
    selectedAssets: [PHAsset],
    configuration: ImagePickerConfigurable?,
    camera initializer: @escaping () -> T) where T: CameraCompatible

    Parameters

    selectedAssets

    Preselected image assets that will be highlighted.

    configuration

    Optional appearance configuration.

    camera

    A closure that returns a UIViewController that conforms to CameraCompatible protocol.

  • Returns an object initialized from data in a given unarchiver.

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)

    Parameters

    coder

    An unarchiver object.

  • The image picker’s delegate object, which should conform to ImagePickerControllerDelegate.

    Declaration

    Swift

    open override weak var delegate: UINavigationControllerDelegate?
  • A localized string that shows on the navigation bar.

    Declaration

    Swift

    open override var title: String?
  • A localized string that shows above the photos.

    Declaration

    Swift

    public var hint: NSAttributedString?