The way SwiftUI infers the appropriate writing direction if no value
is explicitly provided.
Members (3)
get · iOS 26.0+
layoutBased
TypeScript
static get layoutBased(): Text_WritingDirectionStrategy
Swift declaration
static let layoutBased: Text.WritingDirectionStrategy
The writing direction following the general UI layout direction.
This writing direction follows the
``EnvironmentValues/layoutDirection`` in the view hierarchy.
get · iOS 26.0+
contentBased
TypeScript
static get contentBased(): Text_WritingDirectionStrategy
Swift declaration
static let contentBased: Text.WritingDirectionStrategy
The writing direction following the language of the string that
is laid out.
The system may use different sources to determine the language
of the string. This may include the characters used in the
string, especially BiDi isolation markers, the language of the
localization file the string was loaded from, or explicit
annotations with the
<doc://com.apple.documentation/documentation/Foundation/AttributeScopes/FoundationAttributes/languageIdentifier>
attribute.
get · iOS 26.0+
default
TypeScript
static get default(): Text_WritingDirectionStrategy
Swift declaration
static let `default`: Text.WritingDirectionStrategy