---
title: "padding3D(_:_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/padding3d(_:_:)"
---

# padding3D(_:_:)

Pads this view using the edge insets you specify.

## Declaration

```swift
nonisolated func padding3D(_ edges: Edge3D.Set = .all, _ length: CGFloat? = nil) -> some View

```

## Parameters

- `edges`: The set of edges along which to inset this view.
- `length`: The amount to inset this view on each edge. If nil, the amount is the system default amount.

## Return Value

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

## See Also

### Adding padding around a view

- [padding(_:)](swiftui/view/padding(_:).md)
- [padding(_:_:)](swiftui/view/padding(_:_:).md)
- [padding3D(_:)](swiftui/view/padding3d(_:).md)
- [scenePadding(_:)](swiftui/view/scenepadding(_:).md)
- [scenePadding(_:edges:)](swiftui/view/scenepadding(_:edges:).md)
- [ScenePadding](swiftui/scenepadding.md)
