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

# textFormattingConfiguration

For text views that have flag `allowsEditingTextAttributes` set,
this configuration will be used for `UITextFormattingViewController`
when its presentation is requested.

```
@NSCopying var textFormattingConfiguration: UITextFormattingViewController.Configuration? { get set }
```

## Discussion

It has a non-nil default value.

---

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)