DatePicker .graphical style: Inconsistent animation behavior when selecting out-of-range dates

Hi everyone,

I’ve noticed an inconsistency in the behavior of SwiftUI’s DatePicker when using the .graphical style with a bounded date range (in:).

When a user selects a date (month or year) outside the allowed range:

  • If it's before the lower bound, the picker animates smoothly to the lower bound.
  • BUT if the selected date is after the upper bound, the picker immediately jumps to the upper bound without animation.

Note: Using .graphical style with displayedComponents: [.date].

Is this a known issue, and is there any recommended workaround or timeline for a fix? Or is this the intended behavior?

Thanks for flagging this, you're welcome to open a bug report, including a test project that reproduces the issue and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

Here is the FB number of my bug report: FB17527106

DatePicker .graphical style: Inconsistent animation behavior when selecting out-of-range dates
 
 
Q