<!--
{
  "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/init(recurrenceWith:interval:end:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "EventKit"
    ],
    "preciseIdentifier" : "c:objc(cs)EKRecurrenceRule(im)initRecurrenceWithFrequency:interval:end:"
  },
  "title" : "init(recurrenceWith:interval:end:)"
}
-->

# init(recurrenceWith:interval:end:)

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

```
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

  [Calendar and Reminders Programming Guide](https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/EventKitProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009765)



---

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)