---
title: "extend(in:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextselectiondirectionnavigation/extend(in:)"
---

# extend(in:)

Extends text selection in the specified directions, such as in response to an arrow key press while shift is held.

## Declaration

```swift
func extend(in direction: UITextLayoutDirection)
```

## See Also

### Extending the text section

- [extend(in:by:)](browserenginekit/betextselectiondirectionnavigation/extend(in:by:).md)
