An instance of the EKSource class represents the account that a calendar belongs to. You do not create instances of this class. You retrieve EKSource objects from an EKEventStore object. Use the sources property to get all the EKSource objects for an event store, and use the methods in this class to access properties of the source object.


Accessing Source Properties

var sourceIdentifier: String

A unique identifier for the source object.

var sourceType: EKSourceType

The type of this source object.

var title: String

The name of this source object.

Accessing Calendars

var calendars: Set<EKCalendar>

The calendars that belong to this source object.

func calendars(for: EKEntityType)

Returns the calendars that belong to this source object that support a particular entity type.


enum EKSourceType

The type of source object.

enum EKEntityType

The type of entities allowed for a source.

struct EKEntityMask

A bitmask of EKEntityType for specifying multiple entities at once.


Inherits From