AttributedString.SingleAttributeTransformer
struct · iOS 15.0+ · SDK 27.1
@preconcurrency struct SingleAttributeTransformer<T> where T : AttributedStringKey, T.Value : SendableA type that transforms an attribute by altering its range or value, or by replacing it entirely. For simple transformations, the closure you provide to the `transformingAttributes(…)` methods of ``AttributedString`` can use this instance to change the attribute's value. You can also use this instance to change the range of the string that the attribute applies to. To completely replace the attribute with an attribute of a different type, use ``replace(with:value:)-6bn0e``.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AttributedString.SingleAttributeTransformer.replace(with:value:)
Passing a Swift type itself is not supported.
AttributedString.SingleAttributeTransformer.replace(with:value:)
This declaration needs Swift generic type arguments. (no canonical witness for U)