Initializer

init(recurrenceWith:interval:end:)

Initializes and returns a simple recurrence rule with a given frequency, interval, and end.

Declaration

init(recurrenceWith type: EKRecurrenceFrequency, interval: Int, end: EKRecurrenceEnd?)

Parameters

type

The frequency of the recurrence rule. Can be daily, weekly, monthly, or yearly.

interval

The interval between instances of this recurrence. For example, a weekly recurrence rule with an interval of 2 occurs every other week. Must be greater than 0.

end

The end of the recurrence rule.

Return Value

The initialized recurrence rule, or nil if invalid values are provided.

See Also

Creating a Basic Recurrence Rule

enum EKSpan

An object that indicates whether modifications should apply to a single event or all future events of a recurring event.