Instance Method

padding(_:)

Pads this view using the edge insets you specify.

Declaration

func padding(_ insets: EdgeInsets) -> some View

Parameters

insets

The edges to inset.

Return Value

A view that pads this view using edge the insets you specify.

See Also

Adjusting the Padding of a View

func padding(CGFloat) -> View

Pads this view along all edge insets by the amount you specify.

func padding(Edge.Set, CGFloat?) -> View

Pads this view using the edge insets you specify.