Contents

predicateForIncompleteReminders(withDueDateStarting:ending:calendars:)

Creates a predicate to identify all incomplete reminders that occur within a given date range.

Declaration

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

Parameters

  • startDate:

    The start date of the range of reminders fetched, or nil for all incomplete reminders before endDate.

  • endDate:

    The end date of the range of reminders fetched, or nil for all incomplete reminders after startDate.

  • calendars:

    An array of calendars to search.

Mentioned in

Return Value

A predicate to use when calling fetchReminders(matching:completion:).

Discussion

Pass nil for both startDate and endDate to get all incomplete reminders in the specified calendars.

See Also

Searching calendars