Search code examples
iosdatetimepickertimepicker

Android analog time picker for iOS?


I want to create an analog time picker similar to one you can find in Android, how to do it in iOS, someone can give me an idea?

android analog time picker

Thanks


Solution

  • I created a fully functioning analog clock as a demo of the spring animation feature added to iOS. It's on Github at https://github.com/DuncanMC/ClockAnimation. You could start from that. You'd need to rip out the time-telling part, and add a gesture recognizer for setting the amount of time. There is another project on Github that creates a one-finger rotation gesture recognizer. That would be a good option for setting the timer: https://github.com/kirbyt/KTOneFingerRotationGestureRecognizer