<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInput/markedTextStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInput(py)markedTextStyle"
  },
  "title" : "markedTextStyle"
}
-->

# markedTextStyle

A dictionary of attributes that describes how to draw marked text.

```
var markedTextStyle: [NSAttributedString.Key : Any]? { get set }
```

## Discussion

Marked text requires a unique visual treatment when displayed to users. See [Style dictionary keys](/documentation/UIKit/style-dictionary-keys) for descriptions of the valid keys and values for this dictionary.

---

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)