Time Interval Picker for early SwiftUI

Interestingly enough, I found it to be surprisingly complicated to implement a time interval picker with Apple's at the time provided UI elements. Originally, I planned on modifying their Datepicker (the one with the satisfying drums), but it wouldn't work. So I made this, which is good enough (fast, intuitive, precise) for a personal project.

I classify it as bad UI, though, because there's a whole bunch of better approaches to this problem.

46 points · 1 comments · view on lemmy.world

1 Comments

harry315@feddit.de · 2 pts · 2y

Source Code, if anyone wonders how I implemented this monstrosity:

https://pastebin.com/9VqtX2TC