<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ViewDimensions3D",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ViewDimensions3DV"
  },
  "title" : "ViewDimensions3D"
}
-->

# ViewDimensions3D

A view’s 3D size and alignment guides in its own coordinate space.

```
struct ViewDimensions3D
```

## Topics

### Instance Properties

[`var depth: CGFloat`](/documentation/SwiftUI/ViewDimensions3D/depth)

The view’s depth.

[`var height: CGFloat`](/documentation/SwiftUI/ViewDimensions3D/height)

The view’s height.

[`var width: CGFloat`](/documentation/SwiftUI/ViewDimensions3D/width)

The view’s width.

### Subscripts

[`subscript(_:)`](/documentation/SwiftUI/ViewDimensions3D/subscript(_:))

Gets the value of the given depth guide.

[`subscript(explicit:)`](/documentation/SwiftUI/ViewDimensions3D/subscript(explicit:))

Gets the explicit value of the given depth alignment guide

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

---

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)