init(kind:id:)
Creates a new GeneratedContent instance with the specified kind and GenerationID.
Declaration
init(kind: GeneratedContent.Kind, id: GenerationID? = nil)Parameters
- kind:
The kind of content to create.
- id:
An optional Generationid to associate with this content.
Discussion
This initializer provides a convenient way to create content from its kind representation.