<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AttributedTextFormatting/AttributeContainerProxy",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24AttributedTextFormattingO23AttributeContainerProxyV"
  },
  "title" : "AttributedTextFormatting.AttributeContainerProxy"
}
-->

# AttributedTextFormatting.AttributeContainerProxy

A proxy for a partially validated set of attributes.

```
@dynamicMemberLookup struct AttributeContainerProxy<Scope, Attribute> where Scope : AttributeScope, Attribute : AttributedStringKey, Attribute.Value : Sendable
```

## Overview

Exposes `Attribute` as read-write and all other attributes as
read-only. The type automatically queries the underlying
[`AttributedTextFormattingDefinition`](/documentation/SwiftUI/AttributedTextFormattingDefinition) to constrain values that are
accessed.

## Topics

### Structures

[`struct Scoped`](/documentation/SwiftUI/AttributedTextFormatting/AttributeContainerProxy/Scoped)

A scoped proxy for a partially validated set of attributes.

### Subscripts

[`subscript(_:)`](/documentation/SwiftUI/AttributedTextFormatting/AttributeContainerProxy/subscript(_:))

Access the value of the attribute to constrain.

[`subscript(dynamicMember:)`](/documentation/SwiftUI/AttributedTextFormatting/AttributeContainerProxy/subscript(dynamicMember:))

Access the value of the attribute to constrain.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)