UIButton
-
Convenience constructor for UIButton.
Declaration
Swift
public convenience init(x: CGFloat, y: CGFloat, w: CGFloat, h: CGFloat, target: AnyObject, action: Selector) -
Set a background color for the button.
Declaration
Swift
public func setBackgroundColor(_ color: UIColor, forState: UIControlState) -
Adds blur effect to button with selected style
Declaration
Swift
func addBlurToButton(style: UIBlurEffect)Parameters
styleas UIBlurEffect
UIButton Extension Reference