UIEdgeInsets

struct UIEdgeInsets
  • Mechanica

    Returns the vertical insets (composed by top + bottom).

    Declaration

    Swift

    public var vertical: CGFloat { get }
  • Mechanica

    Returns the horizontal insets (composed by left + right).

    Declaration

    Swift

    public var horizontal: CGFloat { get }
  • Mechanica

    Creates an UIEdgeInsets with the same inset value applied to all (top, bottom, right, left)

    Declaration

    Swift

    public init(inset: CGFloat)
  • Mechanica

    Creates an UIEdgeInsets with the horizontal value equally divided and applied to right and left and the vertical value equally divided and applied to top and bottom.

    Declaration

    Swift

    public init(horizontal: CGFloat, vertical: CGFloat)

    Parameters

    horizontal

    Inset to be applied to right and left.

    vertical

    Inset to be applied to top and bottom.