'SwiftUI - .hourAndMinute showing only "00" and "30' minutes
I hope my title is self explanatory enough. I have an hours and minutes time picker, where every minute is shown individually. What I want is to only show the "00" and "30" minutes. Is this achievable?
The code I use for the time picker:
DatePicker("", selection: $selectedStartHour, displayedComponents: .hourAndMinute)
.datePickerStyle(CompactDatePickerStyle())
.labelsHidden()
.clipped()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

