I'm recreating the sleep timer from the Podcasts app. How can I display an icon for the picker instead of the current selection?
This doesn't work:
Picker("Sleep Timer", systemImage: "moon.zzz.fill", selection: $sleepTimerDuration) {
Text("Off").tag(0)
Text("5 Minutes").tag(5)
Text("10 Minutes").tag(10)
Text("15 Minutes").tag(15)
Text("30 Minutes").tag(30)
Text("45 Minutes").tag(45)
Text("1 Hour").tag(60)
}
Do I need to drop down to UIKit for this?