---
title: "init(interval:frequency:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inrecurrencerule/init(interval:frequency:)"
---

# init(interval:frequency:)

Initializes the recurrence rule to the specified frequency and interval.

## Declaration

```swift
convenience init(interval: Int, frequency: INRecurrenceFrequency)
```

## Parameters

- `interval`: The interval at which to repeat the specified time frame.
- `frequency`: The time frame over which to repeat the event. For a list of possible values, see doc://com.apple.sirikit/documentation/Intents/INRecurrenceFrequency.

## Return Value

Return Value An initialized INRecurrenceRule object or nil if the object could not be created.
