---
title: direction
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextselectionhandleview/direction
---

# direction

The orientation of the selection handle.

## Declaration

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

## Discussion

Discussion Specify leading if this view represents the leading selection handle or trailing if it represents the trailing selection handle. The system uses this information to determine where to differentiate the selection handles visually.

## See Also

### Specifying the handle details

- [customShape](uikit/uitextselectionhandleview/customshape.md)
- [isVertical](uikit/uitextselectionhandleview/isvertical.md)
