markdownName
TypeScriptstatic get markdownName(): stringSwift declarationstatic let markdownName: StringThe Markdown name associated with an attributed string key.
enum · iOS 15.0+ · SDK 27.1
@frozen enum InflectionAlternativeAttributeAn attribute that provides an alternative inflection phrase when the system can't achieve grammatical agreement. Use this attribute to provide an alternative phrase for cases where the system can't achieve unambiguous grammatical agreement. For example, when inflecting a gendered word without knowing the person's preferred terms of address, you can set an `inflectionAlternative` to supply a gender-neutral fallback: ```swift let resource = LocalizedStringResource( "^[Bienvenido](inflect: true, inflectionAlternative: 'Te damos la bienvenida').") let result = AttributedString(localized: resource) // result == "Te damos la bienvenida." ```
static get markdownName(): stringSwift declarationstatic let markdownName: StringThe Markdown name associated with an attributed string key.
static decodeMarkdown(decoder: SDKHandle): AttributedStringSwift declarationstatic func decodeMarkdown(from decoder: any Decoder) throws -> AttributedStringDecodes a value from the provided decoder. This method throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid. - Parameter decoder: The decoder to read data from. - Returns: The decoded value.
static objectiveCValue(value: AttributedString): _ObjectiveC_NSObjectSwift declarationstatic func objectiveCValue(for value: AttributedString) throws -> NSObjectReturns an Objective-C typed value for a given value of this key's type. - Parameter value: The value to convert. - Returns: `value`, expressed as the Objective-C type defined by ``ObjectiveCConvertibleAttributedStringKey/ObjectiveCValue``.
static get nameValue(): stringSwift declarationstatic let name: StringThe name of the key.
static value(object: _ObjectiveC_NSObject): AttributedStringSwift declarationstatic func value(for object: NSObject) throws -> AttributedStringReturns a value of this key's type for a given Objective-C value. - Parameter object: The Objective-C value to convert. - Returns: `object`, expressed as this key's type.
No declarations were skipped in this snapshot.