UIView
Undocumented
-
Loads nib from Bundle
- Parameters:
- nibName: Nib Name
- viewIndex: View Index
- owner: Nib Owner AnyObject
Returns
UIViewDeclaration
Swift
public class func loadWithNib(_ nibName:String, viewIndex:Int, owner: AnyObject) -> AnyParameters
nibNameNib Name
viewIndexView Index
ownerNib Owner AnyObject
Return Value
UIView
- Parameters:
-
Loads dynamic nib from Bundle
- Parameters:
- nibName: Nib Name
- viewIndex: View Index
- owner: Nib Owner AnyObject
Returns
UIViewDeclaration
Swift
public class func loadDynamicViewWithNib(_ nibName:String, viewIndex:Int, owner: AnyObject) -> AnyParameters
nibNameNib Name
viewIndexView Index
ownerNib Owner AnyObject
Return Value
UIView
- Parameters:
-
Adds Boarder for the View
- Parameters:
- color: Border Color
- width: Border Width
Declaration
Swift
public func addBorder(_ color:UIColor?, width:Int)Parameters
colorBorder Color
widthBorder Width
- Parameters:
-
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 ValueDeclaration
Swift
public func addRoundedCorners(_ radius:CGFloat)Parameters
radiusRadius 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()
View on GitHub
UIView Extension Reference