I want to create custom curvy UISlider as like below screen which is fit to screen.

I checked MTCircularSlider library and also apply of tranform animaton to UISlider control but none of them working.
My mind got stuck after performing many tries.
Thank you
Using MTCircularSlider library
fileprivate var controlRadius: CGFloat {
return min(bounds.width, bounds.height) / 2.0 - controlThickness
}
See above this library uses min value from width and height.
So, You need to maintain your view width, because it's depend on minimum value of View.
You can mange your view by leading and trailing according below screenshot
or either you can use by proportionalWidth constrain to 0.80 of your superview
And also set the trackAngle as below

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With