Margins

struct Margins

Margins

  • Left margin

    Declaration

    Swift

    var left: CGFloat
  • Right margin

    Declaration

    Swift

    var right: CGFloat
  • top

    Top margin

    Declaration

    Swift

    var top: CGFloat
  • Bottom margin

    Declaration

    Swift

    var bottom: CGFloat
  • Initiates a margins with default values: top = 3; left = 2; right = 2; bottom = 3

    Declaration

    Swift

    public init()
  • Initiates a margins

    Declaration

    Swift

    public init(top: CGFloat, left: CGFloat, right: CGFloat, bottom: CGFloat = 0)

    Parameters

    top

    Top margin

    left

    Left margin

    right

    Right margin

    bottom

    Bottom margin, default value is 0