<!--
{
  "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/Scoped",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24AttributedTextFormattingO23AttributeContainerProxyV6ScopedV"
  },
  "title" : "AttributedTextFormatting.AttributeContainerProxy.Scoped"
}
-->

# AttributedTextFormatting.AttributeContainerProxy.Scoped

A scoped proxy for a partially validated set of attributes.

```
@dynamicMemberLookup struct Scoped<Subscope> where Subscope : AttributeScope
```

## Overview

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

> Note: This is equivalent to an
> ``doc://com.apple.SwiftUI/documentation/SwiftUI/AttributedTextFormatting/AttributeContainerProxy``, except it only
> provides dynamic member lookup for attributes in a certain ``Subscope``.

## Topics

### Subscripts

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

Access the value of the attribute to constrain.

## Relationships

### Conforms To

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

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

---

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)