One Logo Pool Ball
Accessibility · IOS API REFERENCE

AttributeScopes.AccessibilityAttributes.AdjustedPitchAttribute

enum · iOS 15.0+ · SDK 27.1

@frozen enum AdjustedPitchAttribute

An attribute to adjust the pitch the spoken speech. Values between `-1` and `0` result in a lower pitch while values between `0` and `1` result in a higher pitch. For example, you may want to lower the pitch when an object is deleted, or raise the pitch if an object is inserted.

Members (4)

get · iOS 15.0+

markdownName

TypeScript
static get markdownName(): string
Swift declaration
static let markdownName: String

The Markdown name associated with an attributed string key.

static · iOS 15.0+

objectiveCValue

TypeScript
static objectiveCValue(value: number): _Foundation_NSNumber
Swift declaration
static func objectiveCValue(for value: Double) 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 var name: String { get }

The name of the key.

static · iOS 15.0+

value

TypeScript
static value(object: _Foundation_NSNumber): number
Swift declaration
static func value(for object: NSNumber) throws -> Double

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 Accessibility types →