<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/padding3D(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE9padding3DyQrAA6Edge3DO3SetV_14CoreFoundation7CGFloatVSgtF"
  },
  "title" : "padding3D(_:_:)"
}
-->

# padding3D(_:_:)

Pads this view using the edge insets you specify.

```
@export(implementation) 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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)