Class

EKCalendar​Item

The EKCalendar​Item class is a an abstract superclass for calendar events and reminders. This class provides common properties and methods for accessing properties of calendar items such as the ability to set the calendar, title, and location as well as support for attaching notes, displaying attendees, setting multiple alarms, and specifying recurrence rules.

Symbols

Accessing Calendar Items

var calendar​Item​Identifier:​ String

The calendar item’s unique identifier.

var calendar​Item​External​Identifier:​ String

The calendar item’s external identifier as provided by the calendar server.

var uuid:​ String

The calendar item’s unique identifier.

Deprecated

Accessing Calendar Item Properties

var calendar:​ EKCalendar

The calendar for the calendar item.

var title:​ String

The title for the calendar item.

var location:​ String?

The location associated with the calendar item.

var creation​Date:​ Date?

The date that this calendar item was created.

var last​Modified​Date:​ Date?

The date that the calendar item was last modified.

var time​Zone:​ Time​Zone?

The time zone for the calendar item.

var url:​ URL?

The URL for the calendar item.

Attaching Notes

var has​Notes:​ Bool

A Boolean value that indicates whether the calendar item has notes.

var notes:​ String?

The notes associated with the calendar item.

Displaying Attendees

var has​Attendees:​ Bool

A Boolean value that indicates whether the calendar item has attendees.

var attendees:​ [EKParticipant]?

The attendees associated with the calendar item, as an array of EKParticipant objects.

Adding and Removing Alarms

var has​Alarms:​ Bool

A Boolean value that indicates whether the calendar item has alarms.

func add​Alarm(EKAlarm)

Adds an alarm to the receiver.

func remove​Alarm(EKAlarm)

Removes an alarm from the calendar item.

var alarms:​ [EKAlarm]?

The alarms associated with the calendar item, as an array of EKAlarm objects.

Setting Recurrence Rules

var has​Recurrence​Rules:​ Bool

A Boolean value that indicates whether the calendar item has recurrence rules.

func add​Recurrence​Rule(EKRecurrence​Rule)

Adds a recurrence rule to the recurrence rule array.

func remove​Recurrence​Rule(EKRecurrence​Rule)

Removes a recurrence rule from the recurrence rule array.

var recurrence​Rules:​ [EKRecurrence​Rule]?

The recurrence rules for the calendar item.

Relationships

Inherits From