One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

TypesettingLanguage

struct · iOS 17.0+ · SDK 27.1

struct TypesettingLanguage

Defines how typesetting language is determined for text. Use a modifier like ``View/typesettingLanguage(_:isEnabled:)`` to specify the typesetting language.

Members (2)

static · iOS 17.0+

explicit

TypeScript
static explicit(language: _Foundation_Locale_Language): TypesettingLanguage
Swift declaration
static func explicit(_ language: Locale.Language) -> TypesettingLanguage

Use explicit language. An explicit language will be used for typesetting. For example, if used with Thai language the line heights will be as tall as needed to accommodate Thai. - Parameters: - language: The language to use for typesetting. - Returns: A `TypesettingLanguage`.

get · iOS 17.0+

automatic

TypeScript
static get automatic(): TypesettingLanguage
Swift declaration
static let automatic: TypesettingLanguage

Automatic language behavior. When determining the language to use for typesetting the current UI language and preferred languages will be considered. For example, if the current UI locale is for English and Thai is included in the preferred languages then line heights will be taller to accommodate the taller glyphs used by Thai.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →