<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/ContextScope/userSelection",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWritingToolsCoordinatorContextScope@NSWritingToolsCoordinatorContextScopeUserSelection"
  },
  "title" : "NSWritingToolsCoordinator.ContextScope.userSelection"
}
-->

# NSWritingToolsCoordinator.ContextScope.userSelection

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

```
case userSelection
```

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)