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

replacingAttributes(_:with:)

Returns an attributed string by replacing occurrences of attributes in one attribute container with those in another attribute container.

Declaration 宣言

func replacingAttributes(_ attributes: AttributeContainer, with others: AttributeContainer) -> AttributedString

Parameters パラメータ

attributes

The existing attributes to replace. 置き換える既存の属性それら。

others

The new attributes to apply. 適用する新しい属性それら。

Return Value 戻り値

An attributed string created by replacing occurrences of attributes in one attribute container with those in another attribute container.

See Also 参照

Applying and Modifying Attributes 属性の適用と修正