I am using the swiftUI DatePicker like so:
Basically, following the tutorial on the apple website. However, the DatePicker echoes out this error in the console:
And when I select certain dates, the picker format changes abruptly.
So, the start date might be "Mar 2, 2021". Then, when I use the picker to select let's say 31st March, the portion showing the selected date moves to the right, and the format changes to "31/3/21". This is not how it is supposed to behave
Initial Behavior (Expected) imgur.com/GI38I7A
Behavior after selecting a date (Unexpected) imgur.com/vuZjhaj
Code Block swift DatePicker("Start Date", selection: $profile.goalDate, in: dateRange, displayedComponents: [.date])
Basically, following the tutorial on the apple website. However, the DatePicker echoes out this error in the console:
Code Block [DatePicker] UIDatePicker 0x7fe42bc36e90 is being laid out below its minimum width of 280. This may not look like expected, especially with larger than normal font sizes.
And when I select certain dates, the picker format changes abruptly.
So, the start date might be "Mar 2, 2021". Then, when I use the picker to select let's say 31st March, the portion showing the selected date moves to the right, and the format changes to "31/3/21". This is not how it is supposed to behave
Initial Behavior (Expected) imgur.com/GI38I7A
Behavior after selecting a date (Unexpected) imgur.com/vuZjhaj