Enumeration

UISearchBar.Style

Specifies whether the search bar has a background.

Declaration

enum Style : UInt

Topics

Constants

case `default`

The search bar has the default style.

case prominent

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

case minimal

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

See Also

Configuring the Search Bar

var barTintColor: UIColor?

The tint color to apply to the search bar background.

var searchBarStyle: UISearchBar.Style

A search bar style that specifies the search bar’s appearance.

var tintColor: UIColor!

The tint color to apply to key elements in the search bar.

var isTranslucent: Bool

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

var barStyle: UIBarStyle

A bar style that specifies the search bar’s appearance.

enum UIBarStyle

Defines the stylistic appearance of different types of views.