Instance Method

padding(_:)

Pads the view using the specified edge insets.

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 the view along all edge insets by the specified amount.

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

Pads the view using the specified edge insets.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software