BaseUIDesignableView

open class BaseUIDesignableView: BaseUIView

BaseUIDesignableView is a subclass of BaseUIView. It draws custom view xib on the view and has all the features of a BaseUIView.

  • 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, nibName:String, viewIndex:Int = 0)

    Parameters

    frame

    View frame

    nibName

    Xib file name

    viewIndex

    Xib file view index

  • Required constructor implemented.

    Declaration

    Swift

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

    Declaration

    Swift

    open override func awakeFromNib()