---
title: NSAttributedStringFormattingContextKey
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsattributedstringformattingcontextkey
---

# NSAttributedStringFormattingContextKey

A type that represents a key in the formatting context dictionary.

## Declaration

```swift
struct NSAttributedStringFormattingContextKey
```

## Topics

### Initializers

- [init(_:)](foundation/nsattributedstringformattingcontextkey/init(_:).md)
- [init(rawValue:)](foundation/nsattributedstringformattingcontextkey/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Structures

- [AsyncCharacterSequence](foundation/asynccharactersequence.md)
- [AsyncLineSequence](foundation/asynclinesequence.md)
- [AsyncUnicodeScalarSequence](foundation/asyncunicodescalarsequence.md)
- [Expression](foundation/expression.md)
- [NSKeyValueChangeKey](foundation/nskeyvaluechangekey.md)
- [NSKeyValueObservedChange](foundation/nskeyvalueobservedchange.md)
- [NSKeyValueOperator](foundation/nskeyvalueoperator.md)
- [PresentationIntent](foundation/presentationintent.md)
