Class

EKEventViewController

An EKEventViewController object displays the details of a calendar event. You can set whether users are allowed to edit the event. If the event is an invitation, where the organizer is not the user, you can set whether a calendar preview is shown.

Overview

You need to assign a delegate to an EKEventViewController object to receive a notification when the view controller should be closed. The delegate must conform to the EKEventViewDelegate protocol.

Symbols

Getting and Setting the Event

var event: EKEvent

The event this view controller displays to the user.

Enabling Features

var allowsCalendarPreview: Bool

A Boolean value that determines whether the user can view the event in a calendar day preview.

var allowsEditing: Bool

A Boolean value that determines whether the user is allowed to edit the event.

Acessing the Delegate

var delegate: EKEventViewDelegate?

The event view controller’s delegate.