One Logo Pool Ball
Foundation · IOS API REFERENCE

AttributeScopes.FoundationAttributes.InlinePresentationIntentAttribute

enum · iOS 15.0+ · SDK 27.1

@frozen enum InlinePresentationIntentAttribute

A type for using an inline presentation intent as an attribute. An inline presentation intent applies to a run of characters inside a larger block, and covers traits like emphasis, strikethrough, and code voice.

Members (3)

static · iOS 15.0+

objectiveCValue

TypeScript
static objectiveCValue(value: InlinePresentationIntent): NSNumber
Swift declaration
static func objectiveCValue(for value: InlinePresentationIntent) throws -> NSNumber

Returns 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``.

get · iOS 15.0+

name

TypeScript
static get nameValue(): string
Swift declaration
static let name: String

The name of the key.

static · iOS 15.0+

value

TypeScript
static value(object: NSNumber): InlinePresentationIntent
Swift declaration
static func value(for object: NSNumber) throws -> InlinePresentationIntent

Returns 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.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →