I would like to make the custom UISlider, something like this
|o----------| -> |-----O------| -> |------------〇|
the thumbImage
will be small at the minimum value, it will increase the size during the slider value increase, otherwise it will decrease.
is anyone know how to do it?
You can use this code:
Taken from here.
The extra work you will have, will be a method A that will call the
imageWithImage:scaledToSize:
when theUISlider's
value changes.Swift 3: