---
title: "lineDirection(forLanguage:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/locale/linedirection(forlanguage:)"
---

# lineDirection(forLanguage:)

Returns the line direction for a specified language code.

## Declaration

```swift
static func lineDirection(forLanguage isoLangCode: String) -> Locale.LanguageDirection
```

## See Also

### Getting line and character direction for a language

- [characterDirection(forLanguage:)](foundation/locale/characterdirection(forlanguage:).md)
- [Locale.LanguageDirection](foundation/locale/languagedirection.md)
- [NSLocale.LanguageDirection](foundation/nslocale/languagedirection.md)
