When displaying a GraphicalDatePickerStyle on a sheet the GraphicalDatePickerStyle starts shrunk then jumps to full size.
Button(action: {
withAnimation() {
showDatePicker.toggle()
}
}) {
Text("Button")
}
.sheet(isPresented: $showDatePicker) {
DatePicker("",
selection: $viewModel.date,
in: ...Date(),
displayedComponents: [.date]
)
.datePickerStyle(GraphicalDatePickerStyle())
.padding()
}
I've tried to remove the padding and that did not resolve my issue. Prior to the stable iOS 15.0 release this was not an issue (on iOS 14->15 developer beta 2)
Is there a workaround for this issue or is this a recognized bug?