<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Calendar/RecurrenceRule/weeks",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation8CalendarV14RecurrenceRuleV5weeksSaySiGvp"
  },
  "title" : "weeks"
}
-->

# weeks

On which weeks of the year the event should occur.

```
var weeks: [Int]
```

## Discussion

- 1 is the first week of the year. `calendar.minimumDaysInFirstWeek`
  defines 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 `frequency` is other than `.yearly`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)