Protocols
The following protocols are available globally.
-
A protocol defining callback methods for a
ColorSliderpreview view.To create a custom preview view, create a
UIViewsubclass and implementColorSliderPreviewing. Then, create an instance of your custom preview view and pass it to theColorSliderinitializer. As a user drags their finger,ColorSliderwill automatically set your preview view’scenterto the point closest to the touch, centered along the axis perpendicular to theColorSlider‘s orientation.If
See moreautoresizesSubviewsistrue(the default value on allUIViews) on yourColorSlider, your preview view will also be automatically resized when itscenterpoint is being set. To disable resizing your preview, set theautoresizesSubviewsproperty on yourColorSlidertofalse.Declaration
Swift
public protocol ColorSliderPreviewing
View on GitHub
Install in Dash
Protocols Reference