UIView

  • Nib

    Gets the UINib named self.Identifier

    Declaration

    Swift

    public static var Nib: UINib
  • The string representation of self

    Declaration

    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

    corners

    Which corners to round

    radius

    The corner radius to apply to corners

    borderColor

    The color of the border

  • Fill self with the provided view.

    Declaration

    Swift

    public func fill(with view: UIView) -> Void

    Parameters

    view

    View 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

    width

    height

  • 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 view to self.

    Declaration

    Swift

    public func center(on view: UIView)

    Parameters

    view

    View to constrain. Must already be in the view hierarchy