UIView

Undocumented

  • Loads nib from Bundle

  • Parameters:

    • nibName: Nib Name
    • viewIndex: View Index
    • owner: Nib Owner AnyObject
  • Returns

    UIView

    Declaration

    Swift

    public class func loadWithNib(_ nibName:String, viewIndex:Int, owner: AnyObject) -> Any

    Parameters

    nibName

    Nib Name

    viewIndex

    View Index

    owner

    Nib Owner AnyObject

    Return Value

    UIView

  • Loads dynamic nib from Bundle

  • Parameters:

    • nibName: Nib Name
    • viewIndex: View Index
    • owner: Nib Owner AnyObject
  • Returns

    UIView

    Declaration

    Swift

    public class func loadDynamicViewWithNib(_ nibName:String, viewIndex:Int, owner: AnyObject) -> Any

    Parameters

    nibName

    Nib Name

    viewIndex

    View Index

    owner

    Nib Owner AnyObject

    Return Value

    UIView

  • Adds Boarder for the View

    • Parameters:
      • color: Border Color
      • width: Border Width

    Declaration

    Swift

    public func addBorder(_ color:UIColor?, width:Int)

    Parameters

    color

    Border Color

    width

    Border Width

  • Makes Rounded corners of View. it trims the view in circle

    Declaration

    Swift

    public func addRoundedCorners()
  • Adds rounded corner with defined radius

    Parameter

    Parameter radius: Radius Value

    Declaration

    Swift

    public func addRoundedCorners(_ radius:CGFloat)

    Parameters

    radius

    Radius Value

  • Adds Drop shadow on the view

    Declaration

    Swift

    public func addDropShadow()
  • Shows view with fadeIn animation

    Declaration

    Swift

    public func fadeIn()
  • Undocumented

  • Shakes view in a static animation

    Declaration

    Swift

    public func shake()
  • Rempves all views from the view

    Declaration

    Swift

    public func removeAllSubviews()