---
title: setPositions
framework: eventkit
role: symbol
role_heading: Instance Property
path: eventkit/ekrecurrencerule/setpositions
---

# setPositions

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

## Declaration

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

## Discussion

Discussion For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday, and a 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).

## See Also

### Accessing Recurrence Rule Properties

- [EKRecurrenceFrequency](eventkit/ekrecurrencefrequency.md)
- [calendarIdentifier](eventkit/ekrecurrencerule/calendaridentifier.md)
- [recurrenceEnd](eventkit/ekrecurrencerule/recurrenceend.md)
- [frequency](eventkit/ekrecurrencerule/frequency.md)
- [interval](eventkit/ekrecurrencerule/interval.md)
- [firstDayOfTheWeek](eventkit/ekrecurrencerule/firstdayoftheweek.md)
- [daysOfTheWeek](eventkit/ekrecurrencerule/daysoftheweek.md)
- [daysOfTheMonth](eventkit/ekrecurrencerule/daysofthemonth.md)
- [daysOfTheYear](eventkit/ekrecurrencerule/daysoftheyear.md)
- [weeksOfTheYear](eventkit/ekrecurrencerule/weeksoftheyear.md)
- [monthsOfTheYear](eventkit/ekrecurrencerule/monthsoftheyear.md)
- [EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE()](eventkit/ek_lose_fractional_seconds_do_not_use().md)
