Skip Navigation
InitializerInitializer

init(name:contentHTML:imageHTML:chapters:)

Creates a volume.

init(
    name: String? = nil,
    contentHTML: String = "",
    imageHTML: String = "",
    chapters: [Chapter]
)

Parameters

name

The name of the volume, if it has one.

contentHTML

The rendered HTML of the volume’s introduction.

imageHTML

The rendered HTML of the volume’s image, if any.

chapters

The chapters of the volume, in order.