LavaUI docs

struct EditorDecoration

Swift

struct EditorDecoration

A diagnostic attached to a range of EditorView's bound text.

range is character offsets (matching TextEditingState's own indexing), not String.Index — indices aren't Sendable or stable across edits, offsets from a fresh parse always are.

Sources/LavaUI/EditorView.swift:89

Constructors

init(range: Range<Int>, severity: DiagnosticSeverity = .error, underline: DecorationUnderline = .wavy, gutterIcon: String? = nil, color: Color? = nil, message: String? = nil)

Not documented.

Sources/LavaUI/EditorView.swift:97

Properties

var color: Color?

Not documented.

Sources/LavaUI/EditorView.swift:94

var gutterIcon: String?

Not documented.

Sources/LavaUI/EditorView.swift:93

var message: String?

Not documented.

Sources/LavaUI/EditorView.swift:95

var range: Range<Int>

Not documented.

Sources/LavaUI/EditorView.swift:90

var severity: DiagnosticSeverity

Not documented.

Sources/LavaUI/EditorView.swift:91

var underline: DecorationUnderline

Not documented.

Sources/LavaUI/EditorView.swift:92