---
title: "init(size:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothboxshape/init(size:)"
---

# init(size:)

Creates a box shape with the given size.

## Declaration

```swift
init(size: SIMD3<Float>)
```

## Parameters

- `size`: The size of the box along each axis.
