---
title: "characterDirection(forLanguage:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nslocale/characterdirection(forlanguage:)"
---

# characterDirection(forLanguage:)

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

## Declaration

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

## Parameters

- `isoLangCode`: The ISO language code.

## Return Value

Return Value Returns the direction in which characters appear within a line 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

- [lineDirection(forLanguage:)](foundation/nslocale/linedirection(forlanguage:).md)
- [NSLocale.LanguageDirection](foundation/nslocale/languagedirection.md)
