Post

Replies

Boosts

Views

Activity

Reply to Issue with DatePicker in Xcode 14
I can't get DatePicker to work either. with style set to .compact, the screen loads and I can tap on the picker. I can select day/month ok, but if I tap the top-left part of the picker to change year it hangs the app and gives this error. If I set the style to .wheel, it hangs immediately the page loads. import SwiftUI struct TestDate: View {       @State private var selectedFilingDate = Date()       var body: some View {     DatePicker("Date", selection: $selectedFilingDate, displayedComponents: .date) //                  .datePickerStyle(.wheel)   } } struct TestDate_Previews: PreviewProvider {   static var previews: some View {     TestDate()   } }
Sep ’22