Skip to content

Instance PropertyFoundationEssentials

characterDirection

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
The ordering of characters within a line.
var characterDirection: Locale.LanguageDirection { get }

Discussion

For example, English uses left-to-right while Mongolian in the Mongolian script uses top-to-bottom.