<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchBar/Style",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UISearchBarStyle"
  },
  "title" : "UISearchBar.Style"
}
-->

# UISearchBar.Style

Specifies whether the search bar has a background.

```
enum Style
```

## Topics

### Constants

[`UISearchBar.Style.default`](/documentation/UIKit/UISearchBar/Style/default)

The search bar has the default style.

[`UISearchBar.Style.prominent`](/documentation/UIKit/UISearchBar/Style/prominent)

The search bar has a translucent background, and the search field is opaque.

[`UISearchBar.Style.minimal`](/documentation/UIKit/UISearchBar/Style/minimal)

The search bar has no background, and the search field is translucent.



---

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)