---
title: "updateRecurrences(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmeventtrigger/updaterecurrences(_:completionhandler:)"
---

# updateRecurrences(_:completionHandler:)

Updates the days of the week the trigger can repeat.

## Declaration

```swift
func updateRecurrences(_ recurrences: [DateComponents]?, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updateRecurrences(_ recurrences: [DateComponents]?) async throws
```

## Parameters

- `recurrences`: An array of doc://com.apple.documentation/documentation/Foundation/DateComponents that represent the days of the week that the event trigger can repeat. Only respects the doc://com.apple.documentation/documentation/Foundation/DateComponents/weekday property of doc://com.apple.documentation/documentation/Foundation/DateComponents.
- `completion`: A block that executes after processing the request. The block takes the following parameter:

## See Also

### Controlling recurrence

- [recurrences](homekit/hmeventtrigger/recurrences.md)
- [executeOnce](homekit/hmeventtrigger/executeonce.md)
- [updateExecuteOnce(_:completionHandler:)](homekit/hmeventtrigger/updateexecuteonce(_:completionhandler:).md)
