<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Size3D/init(width:height:depth:)-4kscw",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So8SPSize3Da7SpatialE5width6height5depthABx_xxtcSBRzlufc"
  },
  "title" : "init(width:height:depth:)"
}
-->

# init(width:height:depth:)

Creates a size structure from the specified floating-point values.

```
init<T>(width: T, height: T, depth: T) where T : BinaryFloatingPoint
```

## Parameters

`width`

A floating-point value that specifies the width.

`height`

A floating-point value that specifies the height.

`depth`

A floating-point value that specifies 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)