'SwiftUI graphical datepicker: Is there a way to have today and all other days with the same text color?
I set selection after 2 days but it still shows date of today in different color, Is there a native way to have today and all other days with the same text color?
struct ContentView: View {
@State private var date = Calendar.current.date(byAdding: .day, value: 2, to: Date())!
var body: some View {
DatePicker(
"",
selection: $date,
displayedComponents: [.date]
)
.datePickerStyle(.graphical)
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

