<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INDateComponentsRange/ekRecurrenceRule()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INDateComponentsRange(im)EKRecurrenceRule"
  },
  "title" : "ekRecurrenceRule()"
}
-->

# ekRecurrenceRule()

Returns an Event Kit recurrence rule that matches the available information.

```
func ekRecurrenceRule() -> EKRecurrenceRule?
```

## Return Value

The recurrence rule that matches the recurring date range, or nil if the date components range does not specify a recurring time.

## Discussion

If you initialized the date components range with a recurrence rule, use this method to specify that rule in a format that is accepted by Event Kit classes.

---

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)