---
title: NSWritingToolsCoordinator.ContextScope.userSelection
framework: appkit
role: symbol
role_heading: Case
path: appkit/nswritingtoolscoordinator/contextscope/userselection
---

# NSWritingToolsCoordinator.ContextScope.userSelection

An option to provide only the view’s currently selected text.

## Declaration

```swift
case userSelection
```

## Discussion

Discussion With this option, include the selected text in your context object, along with some additional text before and after the selection. When performing changes inline with your view’s content, Writing Tools applies animations only to the selected text.

## See Also

### Getting the scope

- [NSWritingToolsCoordinator.ContextScope.fullDocument](appkit/nswritingtoolscoordinator/contextscope/fulldocument.md)
- [NSWritingToolsCoordinator.ContextScope.visibleArea](appkit/nswritingtoolscoordinator/contextscope/visiblearea.md)
