<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextSelectionHandleView/direction",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextSelectionHandleView(py)direction"
  },
  "title" : "direction"
}
-->

# direction

The orientation of the selection handle.

```
var direction: NSDirectionalRectEdge { get set }
```

## Discussion

Specify [`leading`](/documentation/UIKit/NSDirectionalRectEdge/leading) if this view represents the leading selection handle or [`trailing`](/documentation/UIKit/NSDirectionalRectEdge/trailing) if it represents the trailing selection handle. The system uses this information to determine where to differentiate the selection handles visually.

---

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)