CustomUIButton

open class CustomUIButton: BaseUIButton

CustomUIButton is a subclass of BaseUIButton having all the properties of a UIButton. it resizes the images according to device resolution.

  • Button image background color key from SyncEngine.

    Declaration

    Swift

    @IBInspectable open var imgBgColorStyle:String? = nil
  • Padding between image and title.

    Declaration

    Swift

    @IBInspectable open var titleOffSet:CGPoint
  • Title and Image container pedding from the main container.

    Declaration

    Swift

    @IBInspectable open var containtOffSet:CGPoint
  • Flag for whether to draw containt in the center.

    Declaration

    Swift

    @IBInspectable open var containtCenter:Bool
  • Flag for whether to draw containt in the reverse order. (e.g. title and then Image.) The native behavior of UIButton is, image first and then title text.

    Declaration

    Swift

    @IBInspectable open var reversedOrder:Bool
  • Undocumented

    Declaration

    Swift

    open class CustomUIButton: BaseUIButton
  • Calculated frame of button image view. It uses UIButton native UIViewContentMode to calculate frames.

    Declaration

    Swift

    open var imageViewFrame:CGRect
  • Calculated frame of title text lable. It uses image frame as a reference to calculate frames.

    Declaration

    Swift

    open var titleLabelFrame:CGRect
  • Overriden propert to get content mode changes.

    Declaration

    Swift

    override open var contentMode:UIViewContentMode
  • Overridden methed to update layout.

    Declaration

    Swift

    override open func layoutSubviews()