<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EventKit",
  "identifier" : "/documentation/EventKit/EKRecurrenceRule/setPositions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "EventKit"
    ],
    "preciseIdentifier" : "c:objc(cs)EKRecurrenceRule(py)setPositions"
  },
  "title" : "setPositions"
}
-->

# setPositions

An array of ordinal numbers that filters which recurrences to include in the recurrence rule’s frequency.

```
var setPositions: [NSNumber]? { get }
```

## Discussion

For example, a yearly recurrence rule that has a [`daysOfTheWeek`](/documentation/EventKit/EKRecurrenceRule/daysOfTheWeek) value that specifies Monday through Friday, and a [`setPositions`](/documentation/EventKit/EKRecurrenceRule/setPositions) array containing `2` and `-1`, occurs only on the second weekday and last weekday of every year. Values can be from `1` to `366` and from `-1` to `-366`.

Negative values indicate counting backwards from the end of the recurrence rule’s frequency (week, month, or year).

---

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)