InitializerInitializerinit(name:
init(name:contentHTML:imageHTML:chapters:)
Creates a volume.
init(
name: String? = nil,
contentHTML: String = "",
imageHTML: String = "",
chapters: [Chapter]
)Parameters
nameThe name of the volume, if it has one.
contentHTMLThe rendered HTML of the volume’s introduction.
imageHTMLThe rendered HTML of the volume’s image, if any.
chaptersThe chapters of the volume, in order.