Instance Methodswift 6.0.3FoundationEssentials
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
@preconcurrency mutating func replace<U>(with key: U.Type, value: U.Value) where U : AttributedStringKey, U.Value : Sendable
s20FoundationEssentials16AttributedStringV26SingleAttributeTransformerV7replace4with5valueyqd__m_5ValueQyd__tAA0cD3KeyRd__lF
What are these?7PUH7
import FoundationEssentials
@preconcurrency struct SingleAttributeTransformer<T> where T : AttributedStringKey, T.Value : Sendable
@dynamicMemberLookup struct AttributedString
associatedtype Value : Hashable
protocol AttributedStringKey
protocol Sendable
var range: Range<AttributedString.Index>
var value: T.Value? { get set }
@preconcurrency mutating func replace<U>(with keyPath: KeyPath<AttributeDynamicLookup, U>, value: U.Value) where U : AttributedStringKey, U.Value : Sendable