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

# extend(in:by:)

Moves the selection in the specified directions by granularity, in response to different key combinations:

## Declaration

```swift
func extend(in direction: UITextStorageDirection, by granularity: UITextGranularity)
```

## Discussion

Discussion Word = shift + option + left/right paragraph = shift + option + up/down line = shift + command + left/right document = shift + command + up/down

## See Also

### Extending the text section

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