Instance Method

predicateForIncompleteReminders(withDueDateStarting:ending:calendars:)

Fetches incomplete reminders in a set of calendars within an optional range.

Declaration

func predicateForIncompleteReminders(withDueDateStarting startDate: Date?, ending endDate: Date?, calendars: [EKCalendar]?) -> NSPredicate

Parameters

startDate

The starting bound of the range to search.

endDate

The ending bound of the range to search.

calendars

An array of calendars to search.

Return Value

The created predicate to be used for fetchReminders(matching:completion:).

Discussion

Pass nil for startDate to find all reminders due before endDate. Similarly, pass nil for both startDate and endDate to get all incomplete reminders in the specified calendars.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software