Instance Property

showsTouchWhenHighlighted

A Boolean value that determines whether tapping the button causes it to glow.

Declaration

var showsTouchWhenHighlighted: Bool { get set }

Discussion

If true, the button glows when tapped; otherwise, it does not. The image and button behavior is not changed by the glow. The default value is false.

See Also

Configuring Button Presentation

var adjustsImageWhenHighlighted: Bool

A Boolean value that determines whether the image changes when the button is highlighted.

var adjustsImageWhenDisabled: Bool

A Boolean value that determines whether the image changes when the button is disabled.

func backgroundImage(for: UIControl.State) -> UIImage?

Returns the background image used for a button state.

func image(for: UIControl.State) -> UIImage?

Returns the image used for a button state.

func setBackgroundImage(UIImage?, for: UIControl.State)

Sets the background image to use for the specified button state.

func setImage(UIImage?, for: UIControl.State)

Sets the image to use for the specified state.

var tintColor: UIColor!

The tint color to apply to the button title and image.