Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: add90429cf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| private func prepareCalendar() { | ||
| func generateDates(inside interval: DateInterval, matching components: DateComponents) -> [Date] { | ||
| var dates: [Date] = [] | ||
| dates.append(interval.start) |
There was a problem hiding this comment.
Use month-start dates when building calendar month tags
Seeding months with interval.start here makes the first TabView tag a mid-month date whenever the interval does not start on day 1, while displayedMonth is normalized to year/month boundaries (in the initializer and in .onChange(of: selection)). Because TabView(selection:) matches tags by exact Date equality, this desynchronizes selection for the first month (e.g., month picker/day taps set displayedMonth to YYYY-MM-01, but no tag exists for that value), so the first month cannot be reliably selected or restored.
Useful? React with 👍 / 👎.
No description provided.