---
title: "writingToolsBehavior(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/writingtoolsbehavior(_:)"
---

# writingToolsBehavior(_:)

Specifies the Writing Tools behavior for text and text input in the environment.

## Declaration

```swift
nonisolated func writingToolsBehavior(_ behavior: WritingToolsBehavior) -> some View

```

## Parameters

- `behavior`: The Writing Tools behavior for text and text input in the environment.

## Return Value

Return Value A view preferring the specified Writing Tools behavior.

## Discussion

Discussion Use this view modifier to customize or disable the Writing Tools editing experience for Text (when selectable), TextField, and TextEditor views.

## See Also

### Configuring the Writing Tools behavior

- [WritingToolsBehavior](swiftui/writingtoolsbehavior.md)
- [writingToolsAffordanceVisibility(_:)](swiftui/view/writingtoolsaffordancevisibility(_:).md)
