---
title: "init(width:height:depth:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/size3dfloat/init(width:height:depth:)-9u3g4"
---

# init(width:height:depth:)

Returns a size structure from the specified values.

## Declaration

```swift
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.
