DatePickerView Frame error without changing it

Viewed 66

I use some DatePicker in my iOS project and I got this error:

[UIPickerView setFrame:]: invalid size {320, 216} pinned to {320, 216}

I don't know why I have this issue despite the fact I don't change the size of this component. Here is my code:

DatePicker("",
           selection: $trip.date,
           in: Date().getDatePickerRange,
           displayedComponents: .date)
      .datePickerStyle(.wheel)
      .labelsHidden()

I use Xcode 14 with iOS 16.

How can I fix this issues?

0 Answers
Related