---
title: textViewForBeginningOfSelection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nslayoutmanager/textviewforbeginningofselection
---

# textViewForBeginningOfSelection

The text view that contains the first glyph in the selection.

## Declaration

```swift
unowned(unsafe) var textViewForBeginningOfSelection: NSTextView? { get }
```

## Discussion

Discussion This property does not cause layout if the beginning of the selected range is not yet laid out.

## See Also

### Managing the responder chain

- [layoutManagerOwnsFirstResponder(in:)](appkit/nslayoutmanager/layoutmanagerownsfirstresponder(in:).md)
- [firstTextView](appkit/nslayoutmanager/firsttextview.md)
