image(for:)
Returns the image used for a button state.
Declaration
func image(for state: UIControl.State) -> UIImage?Parameters
- state:
The state that uses the image. Possible values are described in State Swift.struct.
Return Value
The image used for the specified state.