Contents

AttributedString.AttributeMergePolicy

An enumeration of behaviors to apply when merging attributes.

Declaration

enum AttributeMergePolicy

Overview

Use an AttributedString.AttributeMergePolicy when working with methods like AttributedString/mergeAttributes(_:mergePolicy:) to indicate how to resolve conflicts between multiple sets of attributes. When a source string and a merging attribute container both contain a given attribute with different values, the merge policy determines how to resolve the conflict.

Topics

Merge Policies

See Also

Applying and Modifying Attributes