Skip Navigation
InitializerInitializer

init(name:contentHTML:imageHTML:topics:)

Creates a chapter.

init(
    name: String,
    contentHTML: String = "",
    imageHTML: String = "",
    topics: [Topic]
)

Parameters

name

The name of the chapter.

contentHTML

The rendered HTML of the chapter’s introduction.

imageHTML

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

topics

The topics of the chapter, in order.