---
title: "init(targetVolume:stiffness:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothbodycomponent/inflationconstraint-swift.struct/init(targetvolume:stiffness:)"
---

# init(targetVolume:stiffness:)

Creates an inflation configuration.

## Declaration

```swift
init(targetVolume: Float, stiffness: Float = 1.0)
```

## Parameters

- `targetVolume`: The target volume (in ㎥) that the body tries to match.
- `stiffness`: The resistance to diverge from the target volume. Valid range is [0.0, 1.0].

## See Also

### Creating an inflation constraint

- [init(stiffness:)](realitykit/clothbodycomponent/inflationconstraint-swift.struct/init(stiffness:).md)
