capacitor-community / capacitor-community/date-picker

Add support for `yearAndMonth` mode

Open
#88 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
94
Forks
30
PR merge metrics
No merged PRs in 30d

Description

iOS now supports a year/month picker natively.

```swift
if #available(iOS 17.4, *) {
picker.datePickerMode = .yearAndMonth
} else {
picker.datePickerMode = .date
// Technically, iOS did support it, but it had to be set like this.
picker.datePickerMode = .init(rawValue: 4269) ?? .date
}

if #available(iOS 13.4, *) {
picker.preferredDatePickerStyle = .wheels
}
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the plugin's Swift date-picker mode handling and compare it with the issue's iOS availability branches for year/month selection. Verify the supported iOS behavior and confirm that the new yearAndMonth mode works without changing existing date-picker modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.