Defines how typesetting language is determined for text.
Use a modifier like ``View/typesettingLanguage(_:isEnabled:)``
to specify the typesetting language.
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.