Hi guys! I'm trying to implement a DatePicker in my app, everything works find except for one thing. When I select the DatePicker I receive this huge warning (I attached a text file that contains the full warning).
[LayoutConstraints] Unable to simultaneously satisfy constraints.
This is only the first part of the warning. Please check the full error attached.
Full error - https://developer.apple.com/forums/content/attachment/6491a943-116e-4154-aca7-076ce4742ec9
On an iPhone, the DatePicker looks good but on an iPad it is very small relative to the iPad screen.
This is my code
// Date picker
DatePicker(selection: $selectedDate, in: ...Date(), displayedComponents: .date) {
Text("")
}
.padding(.trailing)
.onChange(of: self.selectedDate, perform: { date in
// Do something
})
Any ideas about the error?
Thank you.
3
1
2.6k