<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMEventTrigger/updateRecurrences(_:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMEventTrigger(im)updateRecurrences:completionHandler:"
  },
  "title" : "updateRecurrences(_:completionHandler:)"
}
-->

# updateRecurrences(_:completionHandler:)

Updates the days of the week the trigger can repeat.

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

```
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:

- error: If the request was successful, the value of `error` is `nil`; otherwise, the value provides more information about the request status.

---

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)