Using the following DatePicker code, dates are displayed with two different formats, either MMM, D YY or M/D/YY. It should always display MMM, D YY, but randomly displays M/D/YY after changing the date via the calendar interface.
Code Block import SwiftUI struct ContentView: View { @State var date = Date() var body: some View { DatePicker( "On Date", selection: $date, displayedComponents: .date) .datePickerStyle(CompactDatePickerStyle()) } }