xxxxxxxxxx
DatePicker("Please enter a time", selection: $wakeUp, displayedComponents: .hourAndMinute)
xxxxxxxxxx
struct ContentView: View {
@State private var currentDate = Date()
var body: some View {
DatePicker("", selection: $currentDate, displayedComponents: .hourAndMinute)
.labelsHidden()
}
}