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

    edges

    edges to add

    color

    color of edges added

    thickness

    thickness of edges added

    Return Value

    array of views added

  • helper for prepping views for autolayout

    Declaration

    Swift

    public func autolayoutMode()