InitializerInitializerinit(name:
init(name:contentHTML:imageHTML:topics:)
Creates a chapter.
init(
name: String,
contentHTML: String = "",
imageHTML: String = "",
topics: [Topic]
)Parameters
nameThe name of the chapter.
contentHTMLThe rendered HTML of the chapter’s introduction.
imageHTMLThe rendered HTML of the chapter’s image, if any.
topicsThe topics of the chapter, in order.