UIView
class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, CALayerDelegate
-
add border subviews
Declaration
Swift
public func addBorder(edges: UIRectEdge, color: UIColor = UIColor.white, thickness: CGFloat = 1.0, insetTop: UIEdgeInsets = UIEdgeInsets(), insetBottom: UIEdgeInsets = UIEdgeInsets(), insetLeft: UIEdgeInsets = UIEdgeInsets(), insetRight: UIEdgeInsets = UIEdgeInsets()) -> [UIView]Parameters
edgesedges to add
colorcolor of edges added
thicknessthickness of edges added
Return Value
array of views added
-
helper for prepping views for autolayout
Declaration
Swift
public func autolayoutMode()
View on GitHub
UIView Extension Reference