ColorPipetteView

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKColorPipetteView)
open class ColorPipetteView : UIView
extension ColorPipetteView: GLKViewDelegate
extension ColorPipetteView: MTKViewDelegate

A ColorPipetteView can be used to pick a color from a preview image. It hosts an ColorPipetteOverlayView and a view that magnifies the preview image for precise color selection.

Properties

  • The object that acts as a delegate.

    Declaration

    Swift

    open weak var delegate: ColorPipetteViewDelegate?
  • Position of the pipette’s focus point in normalized coordinates of the untransformed preview image. Setting this property triggers an update of the pipette magnification view and the color at the new focus point will be picked.

    Declaration

    Swift

    public var normalizedPosition: CGPoint? { get set }
  • Position of the pipette’s focus point in its superview’s coordinate space. Setting this property triggers an update of the pipette magnification view and the color at its focus point will be picked. This property will equal center after rendering is complete.

    Declaration

    Swift

    public var position: CGPoint? { get set }
  • Scale factor of the magnified preview image.

    Declaration

    Swift

    public var magnificationScale: CGFloat { get set }
  • The UI that is drawn over the magnificationView.

    Declaration

    Swift

    open private(set) lazy var overlayView: ColorPipetteOverlayView { get set }
  • The view that shows the magnification of the edited image.

    Declaration

    Swift

    open private(set) lazy var magnificationView: UIView { get set }
  • The PhotoEditPreviewController that hosts the image where this pipette operates on.

    Declaration

    Swift

    public var previewController: MediaEditPreviewController? { get set }