Contents

asifLayer(url:type:)

Returns an Apple sparse image format (ASIF) configuration for stackable layers.

Declaration

static func asifLayer(url: URL, type: DiskImage.LayerType) -> Self

Parameters

  • url:

    The Url for the disk image file.

  • type:

    The type of layer (cache or overlay).

Return Value

An ASIFLayerCreationConfiguration instance for stacking use.

Discussion

The following example demonstrates how to append a new cache layer to a base image:

var stackedImage = try baseImage.appending(.asifLayer(url: cacheURL, type: .cache))