<!--
{
  "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/PartGenerator",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "hvf"
    ],
    "preciseIdentifier" : "s:3hvf13PartGeneratorP"
  },
  "title" : "PartGenerator"
}
-->

# PartGenerator

Protocol for returning a writer object to create Shape or Composite data

```
protocol PartGenerator
```

## Topics

### Instance Methods

[`func makeComposite(Int) -> any CompositeWriter`](/documentation/hvf/PartGenerator/makeComposite(_:))

Create a new Composite, and return a CompositeWriter to fill it in

[`func makeShape(Int) -> any ShapeWriter`](/documentation/hvf/PartGenerator/makeShape(_:))

Create a new Shape, and return a ShapeWriter to fill it in

---

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)