EdgeInsets

public extension EdgeInsets
  • A constructor where the edges for vertical are equal and those for horizontal also.

    Declaration

    Swift

    init(horizontal: CGFloat, vertical: CGFloat)

    Parameters

    horizontal

    The leading and trailing insets.

    vertical

    The top and bottom insets.

  • An edge insets with a value of zero for all edges.

    Declaration

    Swift

    static let zero: EdgeInsets