UIEdgeInsets

struct UIEdgeInsets
  • SwifterSwift: Return the vertical insets. The vertical insets is composed by top + bottom.

    Declaration

    Swift

    public var vertical: CGFloat { get }
  • SwifterSwift: Return the horizontal insets. The horizontal insets is composed by left + right.

    Declaration

    Swift

    public var horizontal: CGFloat { get }
  • SwifterSwift: Creates an UIEdgeInsets with the inset value applied to all (top, bottom, right, left)

    Declaration

    Swift

    public init(inset: CGFloat)

    Parameters

    inset

    Inset to be applied in all the edges.

  • SwifterSwift: 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.