Skip to content

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

count

How many times to repeat the event, including the first occurrence. count must be greater than 0