LavaUI docs

enum CaretBlink

Swift

Properties

static var isVisible: Bool { get }

Not documented.

Sources/LavaUI/Focus.swift:131

static let period: Double

Not documented.

Sources/LavaUI/Focus.swift:123

Methods

static func noteEdit()

Not documented.

Sources/LavaUI/Focus.swift:126

static func phaseChanged() -> Bool

Call once per frame while a field is focused: reports whether the blink phase flipped, which is the only reason an idle app needs to redraw.

Sources/LavaUI/Focus.swift:140

static func resync()

Adopts the current phase without reporting a change. The blink is suspended while the window is invisible, so lastPhase is stale by an arbitrary number of periods on restore; the caller redraws once anyway and only wants the next phaseChanged() to be meaningful.

Sources/LavaUI/Focus.swift:151