---
title: "updateAccessories(_:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/accessorytrackingprovider/updateaccessories(_:)"
---

# updateAccessories(_:)

Updates the accessories being tracked by a provider.

## Declaration

```swift
final func updateAccessories(_ accessories: [Accessory]) async throws
```

## Parameters

- `accessories`: The new set of accessories to track.

## Discussion

Discussion Updates are atomic: if any accessory fails to be added, the entire request fails and the provider continues tracking the original set of accessories. Update requests are processed sequentially. If multiple requests are made while an update is in progress, only the most recent request is retained and will be processed next; intermediate requests are superseded and throw an error. note: AccessoryTrackingProvider.Error if the update fails, including when one or more accessories cannot be added or the request is superseded by a more recent request.
