Type Method
afterOccurrences(_:)
iOS 18.0+
iPadOS 18.0+
Mac Catalyst 18.0+
macOS 15.0+
tvOS 18.0+
watchOS 11.0+
The event stops repeating after a given number of times
static func afterOccurrences(_ count: Int) -> Calendar.RecurrenceRule.End
Parameters
countHow many times to repeat the event, including the first occurrence.
countmust be greater than0