<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothBodyComponent/inflationConstraint-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C13BodyComponentV19inflationConstraintAC09InflationG0VSgvp"
  },
  "title" : "inflationConstraint"
}
-->

# inflationConstraint

An optional inflation constraint for representing inflatable bodies (must be watertight).

```
var inflationConstraint: ClothBodyComponent.InflationConstraint? { get set }
```

## Discussion

When non-nil, the body will try to maintain the specified target volume with the given stiffness.
The mesh must be watertight for this inflation constraint to have any effect.

Setting this to `nil` disables the inflation constraint (equivalent to a stiffness of zero).

---

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)