Skip Navigation
InitializerInitializer

init(technology:title:contentHTML:estimatedTime:action:imageHTML:volumes:)

Creates the content of a tutorials overview page.

init(
    technology: String,
    title: String,
    contentHTML: String = "",
    estimatedTime: String? = nil,
    action: (title: String, url: String)? = nil,
    imageHTML: String = "",
    volumes: [Volume]
)

Parameters

technology

The name of the technology, shown in the navigation bar.

title

The title of the hero.

contentHTML

The rendered HTML of the hero’s introduction.

estimatedTime

The total estimated time of all tutorials, if known.

action

The title and relative URL of the hero’s call to action, if any.

imageHTML

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

volumes

The volumes, in order.