Contents

lineDirection(forLanguage:)

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

Declaration

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

Parameters

  • isoLangCode:

    The ISO language code.

Return Value

Returns the direction in which lines appear in the specified language. See NSLocale.LanguageDirection for possible values. If the appropriate direction can’t be determined NSLocale.LanguageDirection.unknown is returned.

See Also

Getting Line and Character Direction for a Language