---
title: AttributeKey
framework: swiftui
role: symbol
role_heading: Associated Type
path: swiftui/attributedtextvalueconstraint/attributekey
---

# AttributeKey

The attribute constrained by this constraint.

## Declaration

```swift
associatedtype AttributeKey : AttributedStringKey where Self.AttributeKey.Value : Sendable
```

## Discussion

Discussion note: This attribute must always be part of the associated Scope.
