iOS 14 Datepicker issue with preferredDatePickerStyle set to compact

Viewed 628

My application in crashing when the user taps on the compact style Datepicker on iOS 14 when in the month of February only and Beirut Timezone.

Steps to reproduce error:

  1. Open a new Xcode project targetting iOS 14 at least
  2. Place a datepicker in the storyboard (By default, the style is Automatic and the mode is Date and Time)
  3. Run on iOS 14 simulator or device
  4. Make sure the date is in the month of february and your timezone is set to Beirut
  5. Tap on the datepicker

Expected behavior: A dialog should open showing the full datepicker menu

Actual Behavior: App crashing

Error:

Exception   NSException *   "Invalid calculation: number of calculated days is not dividable by the number of days in a week."

Is anyone having a similar issue?

0 Answers
Related