Enumeration

NSLocale.LanguageDirection

The directions that a language may take across a page of text.

Declaration

enum LanguageDirection : UInt

Overview

Use these constants with the methods lineDirection(forLanguage:) and characterDirection(forLanguage:).

Topics

Constants

case unknown

The direction of the language is unknown.

case leftToRight

The language direction is from left to right.

case rightToLeft

The language direction is from right to left.

case topToBottom

The language direction is from top to bottom.

case bottomToTop

The language direction is from bottom to top.

See Also

Getting Line and Character Direction for a Language

class func characterDirection(forLanguage: String) -> NSLocale.LanguageDirection

Returns the direction of the sequence of characters in a line for the specified ISO language code.

class func lineDirection(forLanguage: String) -> NSLocale.LanguageDirection

Returns the direction of the sequence of lines for the specified ISO language code.