---
title: "settings(context:for:)"
framework: HomeExtensions
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: "homeextensions/homeaccessorysettingsprovider/settings(context:for:)"
---

# settings(context:for:)

Reads the accessory and returns a fresh snapshot of its settings.

## Declaration

```swift
@MainActor func settings(context: Self.Context, for accessory: HMAccessory) async throws -> Self.Container
```

## Parameters

- `context`: The context you supplied to doc://com.apple.HomeExtensions/documentation/HomeExtensions/HomeAccessorySettings.
- `accessory`: The accessory to read settings from.

## Return Value

Return Value The accessory’s current settings.

## See Also

### Accessing the settings

- [settingsDidChange(changes:context:for:)](homeextensions/homeaccessorysettingsprovider/settingsdidchange(changes:context:for:).md)
- [Container](homeextensions/homeaccessorysettingsprovider/container.md)
- [Context](homeextensions/homeaccessorysettingsprovider/context.md)
