<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/TextHighlightStyle/default",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation",
      "UIKit"
    ],
    "preciseIdentifier" : "c:@NSTextHighlightStyleDefault"
  },
  "title" : "default"
}
-->

# default

The default highlight style to apply to text.

```
static let `default`: NSAttributedString.TextHighlightStyle
```

## Discussion

Use this constant as the value for the [`textHighlightStyle`](/documentation/Foundation/NSAttributedString/Key/textHighlightStyle) attribute. The system applies the default highlight color to your text. To specify a different highlight color, add the [`textHighlightColorScheme`](/documentation/Foundation/NSAttributedString/Key/textHighlightColorScheme) attribute to your text and set its value to the color you want.

---

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)