thehung111 / NHRangeSlider

A custom range slider in Swift
https://thehung111.github.io/NHRangeSlider/
MIT License
156 stars 45 forks source link

Remove upper and lower labels on thumbs #7

Closed mding5692 closed 7 years ago

mding5692 commented 7 years ago

Hi, been using the RangeSlider for my app, is it possible to remove the upper and lower labels on the thumbs?

What I've been using is just setting displayformat for both to be null strings, is there a better way?

mding5692 commented 7 years ago

I guess for now, to remove thumb labels, set each displayFormat = ""

thehung111 commented 7 years ago

you can access lowerLabel, upperLabel property and hide them. If you really want them gone you need to subclass NHRangeSliderView and override the layoutSubviews method. The frames for the labels are set there.