Contents

enumerateEvents(matching:using:)

Finds all events that match a given predicate and calls a given callback for each event found.

Declaration

func enumerateEvents(matching predicate: NSPredicate, using block: @escaping  EKEventSearchCallback)

Parameters

Discussion

Only committed events are included in the enumeration. To include events saved using save(_:span:commit:) with the commit parameter set to false, call commit() first.

This method is synchronous. For asynchronous behavior, run the method on another thread with dispatch_async or Operation.

See Also

Searching calendars