<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextDragOptions/stripTextColorFromPreviews",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITextDragOptions@UITextDragOptionStripTextColorFromPreviews"
  },
  "title" : "stripTextColorFromPreviews"
}
-->

# stripTextColorFromPreviews

Strips the foreground and background colors for a system-provided text drag preview.

```
static var stripTextColorFromPreviews: UITextDragOptions { get }
```

## Discussion

When the system creates a preview for a text drag operation, the preview keeps the foreground and background text colors. Using the [`stripTextColorFromPreviews`](/documentation/UIKit/UITextDragOptions/stripTextColorFromPreviews) option strips away those colors, leaving the preview with black text on a clear background. This option changes only the preview, not the view used to create the preview. Also, this option doesn’t affect any images included in the preview.

---

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)