LavaUI docs

class TextLayoutCache

Swift

final class TextLayoutCache

Keyed on (text, font, quantized width, mode). Yoga measure is chatty; this is the main Phase 4 perf lever.

Sources/LavaUI/Font.swift:1086

Properties

var hitRate: Double { get }

Not documented.

Sources/LavaUI/Font.swift:1117

var hits: Int { get }

Not documented.

Sources/LavaUI/Font.swift:1104

var misses: Int { get }

Not documented.

Sources/LavaUI/Font.swift:1105

static let shared: TextLayoutCache

Not documented.

Sources/LavaUI/Font.swift:1087

Methods

func clear()

Not documented.

Sources/LavaUI/Font.swift:1112

func layout(font: UIFont, text: String, availWidth: Float, mode: Int) -> Entry

Not documented.

Sources/LavaUI/Font.swift:1122

func resetStats()

Not documented.

Sources/LavaUI/Font.swift:1107

Types

TextLayoutCache.Entry struct
struct Key

Not documented.

Sources/LavaUI/Font.swift:1089