<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSTextSelectionDataSource/textLayoutOrientation(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextSelectionDataSource(im)textLayoutOrientationAtLocation:"
  },
  "title" : "textLayoutOrientation(at:)"
}
-->

# textLayoutOrientation(at:)

Returns the layout orientation at the location you specify.

```
optional func textLayoutOrientation(at location: any NSTextLocation) -> NSTextSelectionNavigation.LayoutOrientation
```

## Parameters

`location`

The location where you want to examine the text’s layout orientation.

## Return Value

Returns an [`NSTextSelectionNavigation.LayoutOrientation`](/documentation/UIKit/NSTextSelectionNavigation/LayoutOrientation) that describes the orientation of the layout.

---

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)