Contents

setSearchFieldBackgroundImage(_:for:)

Sets the search text field image for a given state.

Declaration

func setSearchFieldBackgroundImage(_ backgroundImage: UIImage?, for state: UIControl.State)

Parameters

  • backgroundImage:

    The search text field image to use for state.

  • state:

    A control state.

    Valid states are Normal and Disabled.

See Also

Customizing the search bar appearance