UI Components
-
ColorWell can be used to present the user’s color selection in your user interface. It optionally also supports drag-and-drop operations.
By default, drop interactions are supported, which causes a
UIControl.Event.valueChanged
event to be emitted. Optionally, drag operations can be enabled, allowing the color to be dropped elsewhere.You can also use
See moreUIControl.Event.touchUpInside
to perform an action, such as to initialise and present an instance ofColorPickerViewController
.Declaration
Swift
@objc(HBColorWell) open class ColorWell : UIControl