Protocols
The following protocols are available globally.
-
A protocol defining callback methods for a
ColorSlider
preview view.To create a custom preview view, create a
UIView
subclass and implementColorSliderPreviewing
. Then, create an instance of your custom preview view and pass it to theColorSlider
initializer. As a user drags their finger,ColorSlider
will automatically set your preview view’scenter
to the point closest to the touch, centered along the axis perpendicular to theColorSlider
‘s orientation.If
See moreautoresizesSubviews
istrue
(the default value on allUIView
s) on yourColorSlider
, your preview view will also be automatically resized when itscenter
point is being set. To disable resizing your preview, set theautoresizesSubviews
property on yourColorSlider
tofalse
.Declaration
Swift
public protocol ColorSliderPreviewing