SweetUI

Search items

Jump to an item

recipe

calendar

Calendar guidance.

calendardatepickerdate-pickerguidance
calendar, light

On iPad

The same installed source at a regular width. It adapts its layout without a separate design.

calendar on iPad, light

Install

Usage

@State private var date = Date.now
@State private var dates: Set<DateComponents> = []

DatePicker("Statement date", selection: $date, displayedComponents: .date)
    .datePickerStyle(.graphical)
    .registryItem("calendar")

MultiDatePicker("Reminder days", selection: $dates)

Why native is enough

DatePicker + .graphical: date. MultiDatePicker: several. Inherits tint, locale, calendar, direction. No replacement.

Accessibility contract

  • Day-cells, month nav: VoiceOver-adjustable.
  • Locale, first-weekday, RTL-month-order: environment.
  • Label needed: graphical style hides it; add surrounding context.

Details

Kindrecipe
Version0.1.1
PlatformsiOS 26.0+
Dependenciesnone
Sourcenone (native guidance)