replace(with:value:)

iOS
15+
macOS
12+
tvOS
15+
watchOS
8+
@preconcurrency mutating func replace<U>(with key: U.Type, value: U.Value) where U : AttributedStringKey, U.Value : Sendable