Instance Method

calendarItems(withExternalIdentifier:)

Returns either the event’s first occurrences or the reminders with the specified external identifier.

Declaration

func calendarItems(withExternalIdentifier externalIdentifier: String) -> [EKCalendarItem]

Parameters

externalIdentifier

The calendar item’s external identifier.

Return Value

An array of calendar items with the specified identifier.

Discussion

The external identifier can be obtained from the calendarItemExternalIdentifier property. There may be more than one matching calendar item due to reasons discussed in calendarItemExternalIdentifier.