---
title: ekRecurrenceRule()
framework: intents
role: symbol
role_heading: Instance Method
path: intents/indatecomponentsrange/ekrecurrencerule()
---

# ekRecurrenceRule()

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

## Declaration

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

## Return Value

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

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.

## See Also

### Getting Recurring Date Information

- [recurrenceRule](intents/indatecomponentsrange/recurrencerule.md)
