telexed ~ c / 8e3991de-e8eradar:40 · otherLIVE
← back
NO.
#8e3991de
Topic
OTHER
Source
GeekNews
Published
2026-05-18 00:01:43
Importance
★ 4/10 — radar 40
Stay Native Until Text Forces Your Hand
FIG-0831:1

Stay Native Until Text Forces Your Hand

SwiftUI can handle Markdown chat UI until document-wide selection enters scope. Jumping to NSTextView brings TextKit 2 complexity and streaming CPU spikes, so delay it.

[ KEY POINTS ]
  1. SwiftUI gives acceptable baseline performance for Markdown chat, but full-document text selection is hard to support cleanly.
  2. Moving to NSTextView and TextKit 2 trades native UI simplicity for lower-level text control and more performance work.
  3. Streaming input can trigger CPU spikes in the text stack. Chat apps should benchmark incremental rendering before committing.
Originalnews.hada.io/topic?id=29602Read original →

// related