Contents

fetchReminders(matching:completion:)

Fetches reminders that match a given predicate.

Declaration

func fetchReminders(matching predicate: NSPredicate, completion: @escaping ([EKReminder]?) -> Void) -> Any

Parameters

  • predicate:

    A search predicate created with Predicateforreminders(in:).

  • completion:

    A closure that receives the reminders that match predicate.

Mentioned in

Return Value

A value that represents the asynchronous fetch request. To cancel a fetch request before it completes, pass this value to cancelFetchRequest(_:).

Discussion

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

This method fetches reminders asynchronously.

See Also

Searching calendars