UIView
-
Gets the
UINibnamedself.IdentifierDeclaration
Swift
public static var Nib: UINib -
The string representation of
selfDeclaration
Swift
public static var Identifier: String
-
Applies a rounded mask and matching border to a view
Declaration
Swift
public func round(corners: UIRectCorner, radius: Int, borderColor: UIColor? = nil, borderWidth: CGFloat? = nil)Parameters
cornersWhich corners to round
radiusThe corner radius to apply to
cornersborderColorThe color of the border
-
Fill self with the provided view.
Declaration
Swift
public func fill(with view: UIView) -> VoidParameters
viewView to pin to edges. Must already be in the view hierarchy.
-
Constrain size of self to a specific width and height.
Declaration
Swift
public func constrainSize(width: CGFloat, height: CGFloat)Parameters
widthheight -
Constrain height of self.
Declaration
Swift
public func constrainHeight(to height: CGFloat)Parameters
height -
Constrain width of self.
Declaration
Swift
public func constrainWidth(to width: CGFloat)Parameters
width -
Align centerX and centerY of
viewtoself.Declaration
Swift
public func center(on view: UIView)Parameters
viewView to constrain. Must already be in the view hierarchy
UIView Extension Reference