<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWritingToolsCoordinator/ContextScope",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIWritingToolsCoordinatorContextScope"
  },
  "title" : "UIWritingToolsCoordinator.ContextScope"
}
-->

# UIWritingToolsCoordinator.ContextScope

Options that indicate how much of your content Writing Tools requested.

```
enum ContextScope
```

## Overview

At the start of any Writing Tools interaction, you provide the text for
the system to evaluate from your [`UIWritingToolsCoordinator.Delegate`](/documentation/UIKit/UIWritingToolsCoordinator/Delegate-swift.protocol)
object. The request for your content comes with a scope constant that
indicates how much of your view’s text to provide.

## Topics

### Getting the scope

[`case userSelection`](/documentation/UIKit/UIWritingToolsCoordinator/ContextScope/userSelection)

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

[`case fullDocument`](/documentation/UIKit/UIWritingToolsCoordinator/ContextScope/fullDocument)

An option to provide all of your view’s text.

[`case visibleArea`](/documentation/UIKit/UIWritingToolsCoordinator/ContextScope/visibleArea)

An option to provide only the text in the currently visible portion
of your view.

### Initializers

[`init?(rawValue: Int)`](/documentation/UIKit/UIWritingToolsCoordinator/ContextScope/init(rawValue:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)