ColorPipetteViewDelegate
@available(iOS 9.0, *)
@objc(PESDKColorPipetteViewDelegate)
public protocol ColorPipetteViewDelegate : AnyObject
The ColorPipetteViewDelegate
defines methods that allow you to respond to messages from
the ColorPipetteView
.
-
Called when the pipette changed its position or the selected color did change.
Declaration
Swift
func colorPipetteView(_ colorPipetteView: ColorPipetteView, didPick newColor: Bool, _ color: UIColor, at normalizedPosition: CGPoint)
Parameters
colorPipetteView
The color pipette view that picked a new color or changed its position.
newColor
Indicates whether the picked
color
is different from the last picked color.color
The picked color.
normalizedPosition
The normalized position of the picked
color
in the untransformed image.