BaseUIButton

open class BaseUIButton: UIButton, BaseView

BaseUIButton is a subclass of UIButton and implements BaseView. It extents UIButton with some extra proporties and supports SyncEngine.

  • Flag for whether to resize the values for iPad.

    Declaration

    Swift

    @IBInspectable open var sizeForIPad:Bool = false;
  • Background color key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var bgColorStyle:String? = nil
  • Selected state background color key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var bgSelectedColorStyle:String? = nil
  • Width of View Border.

    Declaration

    Swift

    @IBInspectable open var border:Int = 0
  • Border color key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var borderColorStyle:String? = nil
  • Corner Radius for View.

    Declaration

    Swift

    @IBInspectable open var cornerRadius:Int = 0
  • Flag for making circle/rounded view.

    Declaration

    Swift

    @IBInspectable open var rounded:Bool = false
  • Flag for Drop Shadow.

    Declaration

    Swift

    @IBInspectable open var hasDropShadow:Bool = false
  • Font name key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var fontName:String = "fontRegular"
  • Font size/style key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var fontStyle:String = "medium"
  • Font color key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var fontColorStyle:String? = nil
  • Selected state font color key from Sync Engine.

    Declaration

    Swift

    @IBInspectable open var fontSelectedColorStyle:String? = nil
  • Overridden property to handle layouts for different status.

    Declaration

    Swift

    override open var isSelected:Bool
  • Overridden constructor to setup/ initialize components.

    Parameter

    Parameter frame: View frame

    Declaration

    Swift

    public override init(frame: CGRect)

    Parameters

    frame

    View frame

  • Required constructor implemented.

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Overridden method to setup/ initialize components.

    Declaration

    Swift

    override open func awakeFromNib()
  • Overridden methed to update layout.

    Declaration

    Swift

    override open func layoutSubviews()
  • Overridden method to set title using Sync Engine key (Hint ’#’).

    • Parameters:
      • title: Button Title
      • state: Button State

    Declaration

    Swift

    override open func setTitle(_ title: String?, for state: UIControlState)

    Parameters

    title

    Button Title

    state

    Button State