Skip Navigation
InitializerInitializer

init(title:url:estimatedTime:isArticle:abstract:)

Creates a topic.

init(
    title: String,
    url: String,
    estimatedTime: String? = nil,
    isArticle: Bool = false,
    abstract: String? = nil
)

Parameters

title

The title of the topic.

url

The relative URL of the topic’s page.

estimatedTime

The estimated time to complete the topic, if known.

isArticle

Whether the topic is an article rather than a tutorial.

abstract

The abstract of the topic as plain text, if known.