<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Size3DFloat/init(width:height:depth:)-9u3g4",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So13SPSize3DFloata7SpatialE5width6height5depthABSf_S2ftcfc"
  },
  "title" : "init(width:height:depth:)"
}
-->

# init(width:height:depth:)

Returns a size structure from the specified values.

```
init(width: Float = 0, height: Float = 0, depth: Float = 0)
```

## Parameters

`width`

The width of the size.

`height`

The height of the size.

`depth`

The width of the depth.

---

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)