setColor(_:)
Sets the color of the slider bar.
Declaration
func setColor(_ color: UIColor?)Parameters
- color:
The custom color to be applied to the slider bar. Specifying
nilremoves the custom color and returns the slider to the color specified in the storyboard file. The default slider bar color is green.