<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: -",
    "macOS: 15.4.0 -",
    "tvOS: 18.4.0 -",
    "visionOS: 2.4.0 -",
    "watchOS: 11.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "hvf",
  "identifier" : "/documentation/hvf/PartRenderer/init(custom:reusable:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "hvf"
    ],
    "preciseIdentifier" : "s:3hvf12PartRendererC6custom8reusableAcA0B6ResultOSi_AA0B9Generator_ptc_Sbtcfc"
  },
  "title" : "init(custom:reusable:)"
}
-->

# init(custom:reusable:)

Use a custom, client-defined loader
Setting reusable to true preserves the input parameter values when rendering; otherwise they are destroyed by rendering

```
init(custom: @escaping CustomPartLoader, reusable: Bool = false)
```

---

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)