<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInputTraits/writingToolsBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInputTraits(py)writingToolsBehavior"
  },
  "title" : "writingToolsBehavior"
}
-->

# writingToolsBehavior

The writing tools experience to support in the current view.

```
optional var writingToolsBehavior: UIWritingToolsBehavior { get set }
```

## Discussion

Use this property to specify the type of experience to display when someone engages writing tools for a text input view. The system does its best to provide the requested UI, but might offer a more limited experience if required capabilities aren’t available. The default value of this property is [`UIWritingToolsBehavior.default`](/documentation/UIKit/UIWritingToolsBehavior/default), which lets the system choose the most appropriate experience for the current device.

Set the value of this property to [`UIWritingToolsBehavior.none`](/documentation/UIKit/UIWritingToolsBehavior/none) if you want to prevent someone from using the writing tools with your view.

---

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)