How to make custom seductive UISlider?

I want to create a custom curvy UISlider, as shown below, which is suitable for the screen.

enter image description here

I checked the MTCircularSlider library and also applied tranformanimaton to the UISlider control, but none of them work. My mind is stuck after many attempts.

thanks

+6
source share
1 answer

Using the MTCircularSlider Library

fileprivate var controlRadius: CGFloat {
     return min(bounds.width, bounds.height) / 2.0 - controlThickness
 }

See above. This library uses a value minof width and height.

, , View. enter image description here

0.80

trackAngle

enter image description here

+1

All Articles