ObjectiveCConvertibleAttributedStringKey
protocol · iOS 15.0+ · SDK 27.1
protocol ObjectiveCConvertibleAttributedStringKey : AttributedStringKeyA protocol that defines Objective-C interoperability with an attribute key's value type. Conform to this protocol to allow your attributed string key to customize its Objective-C conversion behavior. This allows you to define an Objective-C value type and provide methods to convert to and from this type. Attributed string keys that don't conform to this protocol cast the value to <doc://com.apple.documentation/documentation/swift/anyobject> before converting to Objective-C. When converting from Objective-C, the value casts to the key's ``AttributedStringKey/Value`` type. In cases where Swift types bridge automatically to Objective-C types, like <doc://com.apple.documentation/documentation/swift/string> to ``NSString``, this default behavior is adequate. But for unbridged value types, you need to conform to this protocol and provide the conversion methods.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
ObjectiveCConvertibleAttributedStringKey.objectiveCValue(for:)
Static protocol requirements cannot be called through an instance.
ObjectiveCConvertibleAttributedStringKey.value(for:)
Static protocol requirements cannot be called through an instance.
ObjectiveCConvertibleAttributedStringKey.objectiveCValue(for:)
Static protocol requirements cannot be called through an instance.
ObjectiveCConvertibleAttributedStringKey.value(for:)
Static protocol requirements cannot be called through an instance.