Contents

EncodableAttributedStringKey

A protocol that defines how an attribute key encodes its value.

Declaration

protocol EncodableAttributedStringKey : AttributedStringKey

Overview

Implement this protocol to make an attribute encodable. Encoding an AttributedString or AttributeContainer drops any attributes whose types don’t conform to this protocol.

Topics

Encoding Values

See Also

Encoding and Decoding Keys