<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWritingToolsResultOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIWritingToolsResultOptions"
  },
  "title" : "UIWritingToolsResultOptions"
}
-->

# UIWritingToolsResultOptions

Constants to specify what type of content to allow in Writing Tools
suggestions or rewrites.

```
struct UIWritingToolsResultOptions
```

## Overview

When configuring a text view, specify what type of text input you want
Writing Tools to deliver to your view. You can ask it to return
plain text without any attributes, or you can ask it to apply relevant formatting
attributes to the text. You can even encourage it to return items in a list or
format them in a table.

## Topics

### Getting the output options

[`UIWritingToolsResultPlainText`](/documentation/UIKit/UIWritingToolsResultOptions/plainText)

An option to allow only plain text without any attributes in
the returned text.

[`UIWritingToolsResultRichText`](/documentation/UIKit/UIWritingToolsResultOptions/richText)

An option to include style attributes consistent with the RTF
format in the returned text.

[`UIWritingToolsResultList`](/documentation/UIKit/UIWritingToolsResultOptions/list)

An option to allow list-style formatting in the returned text.

[`UIWritingToolsResultTable`](/documentation/UIKit/UIWritingToolsResultOptions/table)

An option to allow tabular layout attributes in the returned text.

## Relationships

### Conforms To

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

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

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

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

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

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

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

[`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)