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

# isTranslucent

A Boolean value that indicates whether the search bar is translucent (true) or not (false).

```
var isTranslucent: Bool { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/true>. If the search bar has a custom background image, the default is <doc://com.apple.documentation/documentation/Swift/true> if any pixel of the image has an alpha value of less than `1.0`, and <doc://com.apple.documentation/documentation/Swift/false> otherwise.

If you set this property to <doc://com.apple.documentation/documentation/Swift/true> on a search bar with an opaque custom background image, the search bar will apply a system opacity less than `1.0` to the image.

If you set this property to <doc://com.apple.documentation/documentation/Swift/false> on a search bar with a translucent custom background image, the search bar provides an opaque background for the image using black if the search bar has [`UIBarStyle.black`](/documentation/UIKit/UIBarStyle/black) style, white if the search bar has [`UIBarStyle.default`](/documentation/UIKit/UIBarStyle/default), or the search bar’s [`barTintColor`](/documentation/UIKit/UISearchBar/barTintColor) if a custom value is defined.

---

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)