Skip Navigation
Type MethodMethod

sharingRepeatedTopicIcons(in:)

Draws the topic list icons that a page shows more than once (see topicListIcon(forRole:)) only once.

static func sharingRepeatedTopicIcons(in html: String) -> String

Parameters

html

A complete page.

Return Value

The page with its repeated topic list icons shared.

Discussion

Every repeated icon is replaced by an element of the same classes and view box that refers to the icon’s drawing, and the drawings are defined in a hidden SVG element at the start of the page’s body. Icons shown once stay as they are.