---
title: "updateRecurrence(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmtimertrigger/updaterecurrence(_:completionhandler:)"
---

# updateRecurrence(_:completionHandler:)

Updates the recurrence interval.

## Declaration

```swift
func updateRecurrence(_ recurrence: DateComponents?, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updateRecurrence(_ recurrence: DateComponents?) async throws
```

## Parameters

- `recurrence`: The new recurrence interval.
- `completion`: The block executed after the request is processed.

## Discussion

Discussion See recurrence for a discussion of how the recurrence value is used.

## See Also

### Using recurrence

- [recurrence](homekit/hmtimertrigger/recurrence.md)
