TomThorpe / TTRangeSlider

A slider, similar in style to UISlider, but which allows you to pick a minimum and maximum range.
MIT License
968 stars 204 forks source link

Overriding Selected Minimum/Maximum labels. #116

Open MarcCJohnson opened 2 years ago

MarcCJohnson commented 2 years ago

I added another optional method to the protocol that allows the user to override labels based upon the float values.

My use case was to show a timestamp based upon the current second of the day and timestamp increase/decrease as the user slides either slider up or down.

Once the method is implemented the user has full control as to how to convert the float or can ignore it and just pass the value through.

I added an example of usage in the demo.