Pads the view using the specified edge insets.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func padding(_ insets: Edge Insets) -> some View
Parameters
insets
The edges to inset.
Return Value
A view that pads this view using the specified edge insets.