---
title: ScopedAttributeContainer
framework: foundation
role: symbol
role_heading: Structure
path: foundation/scopedattributecontainer
---

# ScopedAttributeContainer

An attribute container that allows dynamic member lookup of its contents within the specified attribute scope.

## Declaration

```swift
@dynamicMemberLookup struct ScopedAttributeContainer<S> where S : AttributeScope
```

## Overview

Overview Use a ScopedAttributeContainer when you need to disambiguate between attributes that exist in several attribute scopes that your app uses.

## Topics

### Accessing Attribute Keys

- [subscript(dynamicMember:)](foundation/scopedattributecontainer/subscript(dynamicmember:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Using Defined Attributes

- [AttributeScopes](foundation/attributescopes.md)
- [AttributeDynamicLookup](foundation/attributedynamiclookup.md)
