<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothGrabComponent/init(mode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C13GrabComponentV4modeA2C0D4ModeV_tcfc"
  },
  "title" : "init(mode:)"
}
-->

# init(mode:)

Creates a cloth grab component with the given grab mode.

```
init(mode: ClothGrabComponent.GrabMode)
```

## Parameters

`mode`

Whether to grab using a ray or a volume.

---

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)