Instance Method インスタンスメソッド

mergeAttributes(_:mergePolicy:)

Merges the attributed string’s attributes with those in a specified attribute container.

Declaration 宣言

mutating func mergeAttributes(_ attributes: AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)

Parameters パラメータ

attributes

The attribute container with the attributes to merge.

mergePolicy

A policy to use when resolving conflicts between this string’s attributes and those in attributes.

See Also 参照

Mutating the String’s Attributes 文字列のもつ属性を変化させる