setValue(_:animated:)
Sets the slider’s current value, allowing you to animate the change visually.
Declaration
func setValue(_ value: Float, animated: Bool)Parameters
Discussion
If you specify a value that is beyond the minimum or maximum values, the slider limits the value to the minimum or maximum. For example, if the minimum value is 0.0 and you specify -1.0, the slider sets the value property to 0.0.