Documentation

SwiftUI Calendar Permissions View

A SwiftUI View for introducing and initiating a system request for calendar access from the user.

CalendarPermissionsView with a light color scheme. A SwiftUI Starter Kit Component.
CalendarPermissionsView with a light color scheme.
CalendarPermissionsView with a dark color scheme. A SwiftUI Starter Kit Component.
CalendarPermissionsView with a dark color scheme.

Usage

CalendarPermissionsView(
    interactor: .init(
        didSelectEnable: {},
        didSelectSkip: {}
    )
)

Features

  • Supports light and dark device color schemes by default.
  • Supports font scaling via Dynamic Type.
  • Supports offline usage in SwiftUI Previews for easy debugging and testing.

Notes

  • Use CalendarController to request system access authorization for read and write access to calendar events + reminders. Uses the EventKit framework.