Skip to content

Add support for yearAndMonth mode #88

@oliveryasuna

Description

@oliveryasuna

iOS now supports a year/month picker natively.

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions