LavaUI docs GitHub

struct MarkdownStyle

Swift

struct MarkdownStyle

Colours for a MarkdownView.

Sources/LavaUI/MarkdownView.swift:5

Constructors

init(text: Color? = nil, palette: [Color]? = nil)

Creates a style. nil takes colours from the current theme.

Sources/LavaUI/MarkdownView.swift:14

Properties

var palette: [Color]

Colours for styled spans, indexed by MarkdownSpanStyle: heading, strong, emphasis, code, link and quote, in that order. A style past the end falls back to text.

Sources/LavaUI/MarkdownView.swift:11

var text: Color

Colour of plain text.

Sources/LavaUI/MarkdownView.swift:7