Skip to content

Instance Method

recurrences(of:in:)

iOS 26.0+ iPadOS 26.0+ Mac Catalyst 26.0+ macOS 26.0+ tvOS 26.0+ visionOS 26.0+ watchOS 26.0+
Find recurrences of the given date
func recurrences(of start: Date, in range: ClosedRange<Date>) -> some Sendable & Sequence<Date>

Parameters

start

The date which defines the starting point for the recurrence rule.

range

A range of dates which to search for recurrences.

Return Value

A sequence of dates conforming to the recurrence rule, in the given range. An empty sequence if the rule doesn’t match any dates.

Discussion

The calculations are implemented according to RFC-5545 and RFC-7529.