UIButton
extension UIButton
-
Sets the background color to use for the specified button state.
Declaration
Swift
public func setBackgroundColor(_ color: UIColor, for state: UIControl.State)Parameters
colorThe background color to use for the specified state.
stateThe state that uses the specified image.
View on GitHub
Install in Dash
UIButton Extension Reference