CameraCompatible

public protocol CameraCompatible: class

The CameraCompatible protocol defines the required interface of a customized camera view controller to use in ImagePickerController.

  • The camera view controller’s delegate, which should be compatible with UIImagePickerController’s delegate.

    Declaration

    Swift

    var delegate: (UIImagePickerControllerDelegate & UINavigationControllerDelegate)?
  • The UIImagePickerController compatible source type, which is always set to .camera before presenting.

    Declaration

    Swift

    var sourceType: UIImagePickerController.SourceType