Defines the stylistic appearance of different types of views.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
enum UIBarStyle : Int
Defines the stylistic appearance of different types of views.
SDKs
Framework
enum UIBarStyle : Int
var bar Tint Color: UIColor?
The tint color to apply to the search bar background.
var search Bar Style: UISearch Bar .Style
A search bar style that specifies the search bar’s appearance.
enum UISearch Bar .Style
Specifies whether the search bar has a background.
var tint Color: UIColor!
The tint color to apply to key elements in the search bar.
var is Translucent: Bool
A Boolean value that indicates whether the search bar is translucent (true
) or not (false
).
var bar Style: UIBar Style
A bar style that specifies the search bar’s appearance.