Instance Property
weeks
iOS 18.0+
iPadOS 18.0+
Mac Catalyst 18.0+
macOS 15.0+
tvOS 18.0+
watchOS 11.0+
On which weeks of the year the event should occur.
var weeks: [Int]
Discussion
1 is the first week of the year.
calendar.minimumDaysInFirstWeekdefines which week is considered first.Negative values refer to weeks if counting backwards from the last week of the year. -1 is the last week of the year. This field is unused when
frequencyis other than.yearly.