appending(_:)
Appends a new layer to this disk image, creating or extending a stack
Declaration
consuming func appending(_ configuration: any DiskImage.CreationConfiguration & DiskImage.StackableLayer) throws -> any StackedImageParameters
- configuration:
The configuration to use to create the new layer.
Return Value
A StackedImage containing all layers.
Discussion
This method creates a stacked disk image by creating and appending a new layer to either a base image or an existing stacked image. When the image is already a stacked image, the framework adds the new layer on top of the existing stack.