<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSLocale/lineDirection(forLanguage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLocale(cm)lineDirectionForLanguage:"
  },
  "title" : "lineDirection(forLanguage:)"
}
-->

# lineDirection(forLanguage:)

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

```
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`](/documentation/Foundation/NSLocale/LanguageDirection) for possible values. If the appropriate direction can’t be determined [`NSLocale.LanguageDirection.unknown`](/documentation/Foundation/NSLocale/LanguageDirection/unknown) is returned.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)