setThumbImage(_:for:)
Assigns a thumb image to the specified control states.
Declaration
func setThumbImage(_ image: UIImage?, for state: UIControl.State)Parameters
- image:
The thumb image to associate with the specified states.
- state:
The control state with which to associate the image.
Discussion
When you specify a custom thumb image, the slider ignores the custom thumb tint color, if any.
Sliders respond to user interaction with dynamic effects and appearance. If you use images to customize the appearance of the track, then the slider doesn’t apply the dynamic effects or alter the appearance.