Class

EKEvent

An instance of the EKEvent class represents an event added to a calendar in the Event Kit framework.

Overview

Use the init(eventStore:) method to create a new event. Use the properties in the class to get and modify certain information about an event. Other properties, such as the event’s title and calendar, are inherited from the parent class EKCalendarItem.

Topics

Creating Events

init(eventStore: EKEventStore)

Creates and returns a new event belonging to a specified event store.

Accessing Event Properties

var eventIdentifier: String!

A unique identifier for the event.

var availability: EKEventAvailability

The availability setting for the event.

var startDate: Date!

The start date of the event.

var endDate: Date!

The end date for the event.

var isAllDay: Bool

A Boolean value that indicates whether the event is an all-day event.

var occurrenceDate: Date!

The original occurrence date of an event if it is part of a recurring series.

var isDetached: Bool

A Boolean value that indicates whether an event is a detached instance of a repeating event.

var organizer: EKParticipant?

The organizer associated with the event.

var status: EKEventStatus

The status of the event.

var birthdayPersonID: Int

The Address Book framework record identifier of the person for this birthday event.

Deprecated
var birthdayPersonUniqueID: String?

The Address Book framework record identifier of the person for this birthday event.

Deprecated

Comparing Events

func compareStartDate(with: EKEvent)

Compares the start date of the receiving event with the start date of another event.

Refreshing Event Data

func refresh()

Updates the event’s data with the current information in the Calendar database.

Constants

enum EKEventAvailability

The event’s availability setting for scheduling purposes.

enum EKEventStatus

The event’s status.

Relationships

Inherits From