Contents

transformingAttributes(_:_:_:_:)

Returns an attributed string by calling a closure that transforms three attributes, which key paths identify, of a source attributed string.

Declaration

@preconcurrency func transformingAttributes<K1, K2, K3>(_ k: KeyPath<AttributeDynamicLookup, K1>, _ k2: KeyPath<AttributeDynamicLookup, K2>, _ k3: KeyPath<AttributeDynamicLookup, K3>, _ c: (inout AttributedString.SingleAttributeTransformer<K1>, inout AttributedString.SingleAttributeTransformer<K2>, inout AttributedString.SingleAttributeTransformer<K3>) -> Void) -> AttributedString where K1 : AttributedStringKey, K2 : AttributedStringKey, K3 : AttributedStringKey, K1.Value : Sendable, K2.Value : Sendable, K3.Value : Sendable

Parameters

Return Value

An attributed string with the applied transformations to the specified attributes.

See Also

Transforming Attributes