loom & weft
Made for Swift.

Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.

LOOM Unreleased (PR #2) / ADDITIONAL WIDGETS AND TEXT

MarkdownStreamingSnapshot

A complete rendering snapshot divided at a conservative top-level block boundary.

Replace the previous snapshot on each update; these arrays are not append-only deltas. Later reference definitions can change even structurally stable blocks. The host owns scrollback and must rebuild it when requiresFinalReflow is true.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

MarkdownStreamingSnapshot

Structure
struct MarkdownStreamingSnapshot

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A complete rendering snapshot divided at a conservative top-level block boundary.

Replace the previous snapshot on each update; these arrays are not append-only deltas. Later reference definitions can change even structurally stable blocks. The host owns scrollback and must rebuild it when requiresFinalReflow is true.

Source · MarkdownStreamingSnapshot.swift:6

stableSpans

Instance Property
let stableSpans: [TextSpan]

A public field of this type. Its value type and mutability are shown in the declaration.

Source · MarkdownStreamingSnapshot.swift:7

pendingSpans

Instance Property
let pendingSpans: [TextSpan]

A public field of this type. Its value type and mutability are shown in the declaration.

Source · MarkdownStreamingSnapshot.swift:8

requiresFinalReflow

Instance Property
let requiresFinalReflow: Bool

Completion always requests reflow, including references without a final newline.

Source · MarkdownStreamingSnapshot.swift:10

spans

Instance Property
var spans: [TextSpan] { get }

The full rendering, identical to MarkdownText.spans for the same source.

Source · MarkdownStreamingSnapshot.swift:13