SwiftUI와 TextKit 2를 비교하며 Markdown 채팅 UI 성능을 분석한 글입니다.
이 글은 macOS에서 SwiftUI만을 사용해 Markdown 채팅 UI를 구현할 때의 기본 성능을 다룹니다. SwiftUI의 한계로 인해 문서 전체 선택이 어려워지는 문제도 언급됩니다. 이후 NSTextView와 TextKit 2로 전환할 경우 발생하는 성능 변화와 CPU 스파이크 문제를 논의합니다.
The article compares SwiftUI and TextKit 2 for Markdown chat UI performance on macOS.
This article discusses the performance of building a Markdown chat UI on macOS using only SwiftUI. It highlights the limitations of SwiftUI, particularly in supporting document-wide selection. The article then dives into the performance implications and CPU spikes encountered when switching to NSTextView and TextKit 2.