image(for:state:)
Returns the image for a given search bar icon type and control state.
Declaration
func image(for icon: UISearchBar.Icon, state: UIControl.State) -> UIImage?Parameters
Return Value
The image used for the search bar icon identified by icon in the state identified by state.
See Also
Customizing the search bar appearance
backgroundImagebackgroundImage(for:barMetrics:)setBackgroundImage(_:for:barMetrics:)setImage(_:for:state:)positionAdjustment(for:)setPositionAdjustment(_:for:)inputAccessoryViewsearchFieldBackgroundImage(for:)setSearchFieldBackgroundImage(_:for:)searchFieldBackgroundPositionAdjustmentsearchTextPositionAdjustment