BaseUIDesignableButton
open class BaseUIDesignableButton: BaseUIButton
BaseUIDesignableButton is a subclass of BaseUIButton. It draws custom view xib on the button and has all the features of a BaseUIButton.
-
Inspectable property for custom xib name.
Declaration
Swift
@IBInspectable open var xibName:String?; //Default value is nil -
Inspectable property for custom xib view index.
Declaration
Swift
@IBInspectable open var xibViewIndex:Int = 0; //Default value is Zero
-
Used when creating the underlying layer for the view with a custom xib.
- Parameters:
- frame: View frame
- nibName: Xib file name
- viewIndex: Xib file view index
Declaration
Swift
public init(frame: CGRect, xibName:String, viewIndex:Int = 0)Parameters
frameView frame
nibNameXib file name
viewIndexXib file view index
- Parameters:
-
Required constructor implemented.
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Overridden method to setup/ initialize components.
Declaration
Swift
override open func awakeFromNib()
View on GitHub
BaseUIDesignableButton Class Reference