Contents

AttributeContainer

A container for attribute keys and values.

Declaration

@dynamicMemberLookup struct AttributeContainer

Overview

AttributeContainer provides a way to store attributes and their values outside of an attributed string. You use this type to initialize an instance of AttributedString with preset attributes, and to set, merge, or replace attributes in existing attributed strings.

Topics

Creating an Attribute Container

Accessing Attributes

Modifying Attributes

Interoperating with Objective-C Attributes

Instance Methods

See Also

Creating an Attributed String