UIEdgeInsets

  • Creates new UIEdgeInsets with the same inset value on all sides

    Declaration

    Swift

    public init(all: CGFloat)

    Parameters

    all

    Inset to apply to all sides

  • Creates new UIEdgeInsets with the same inset value horizontally: left/right, and vertically: top/bottom

    Declaration

    Swift

    public init(vertical: CGFloat = 0, horizontal: CGFloat = 0)

    Parameters

    vertical

    Inset to apply to top and bottom

    horizontal

    Inset to apply to left and right