setImage(_:for:state:)
Sets the image for a given search bar icon type and control state.
Declaration
func setImage(_ iconImage: UIImage?, for icon: UISearchBar.Icon, state: UIControl.State)Parameters
See Also
Customizing the search bar appearance
backgroundImagebackgroundImage(for:barMetrics:)setBackgroundImage(_:for:barMetrics:)image(for:state:)positionAdjustment(for:)setPositionAdjustment(_:for:)inputAccessoryViewsearchFieldBackgroundImage(for:)setSearchFieldBackgroundImage(_:for:)searchFieldBackgroundPositionAdjustmentsearchTextPositionAdjustment