TechnologiesUI & App Frameworks

EventKitUI

iOSmacOStvOSwatchOSvisionOS

EventKitUI provides UIKit view controllers for choosing, viewing, and editing calendar events and calendars backed by EventKit. Present EKEventViewController to display an existing event, and use EKEventEditViewController to let people create or modify one, responding to the user's choices through EKEventViewDelegate and EKEventEditViewDelegate and their EKEventViewAction and EKEventEditViewAction results. Use EKCalendarChooser to let people select one or more calendars, configuring its EKCalendarChooserSelectionStyle and EKCalendarChooserDisplayStyle and observing selection through EKCalendarChooserDelegate. The framework is available on iOS and visionOS.

Viewing Events 3

Display the details of an existing calendar event and respond to the actions people take.

  • Cl
    EKEventViewControlleriOS 4.0+
    A view controller that displays the details of an existing calendar event.
  • Pr
    EKEventViewDelegate
    @class EKEventViewController
  • En
    EKEventViewAction
    Constants that identify the action a person took while viewing an event.

Creating and Editing Events 3

Let people create or modify a calendar event and handle the result of the edit session.

  • Cl
    EKEventEditViewControlleriOS 4.0+
    A view controller that lets people create or modify a calendar event.
  • Pr
    EKEventEditViewDelegate
    @class EKEventEditViewController
  • En
    EKEventEditViewAction
    @enum EKEventEditViewAction

Choosing Calendars 2

Present a picker for selecting one or more calendars and observe the selection.

  • Cl
    EKCalendarChooser
    A view controller that lets people select one or more calendars.
  • Pr
    EKCalendarChooserDelegate
    Methods for responding to changes in the calendar chooser's selection.

Calendar Chooser Configuration 2

Constants that control how the calendar chooser presents and handles selection.

  • En
    EKCalendarChooserSelectionStyle
    Constants that specify whether the chooser allows single or multiple calendar selection.
  • En
    EKCalendarChooserDisplayStyle
    Constants that specify which calendars the chooser displays.
← UI & App Frameworks