---
title: CodableAttributedStringKey
framework: foundation
role: symbol
role_heading: Type Alias
path: foundation/codableattributedstringkey
---

# CodableAttributedStringKey

A type alias used by attribute keys that are both encodable and decodable.

## Declaration

```swift
typealias CodableAttributedStringKey = DecodableAttributedStringKey & EncodableAttributedStringKey
```

## See Also

### Encoding and Decoding Keys

- [DecodableAttributedStringKey](foundation/decodableattributedstringkey.md)
- [EncodableAttributedStringKey](foundation/encodableattributedstringkey.md)
