WeSearch

Native all the way, until you need text

Artem Loenko· ·3 min read · 0 reactions · 0 comments · 17 views
#software development#macos#swiftui#electron#rich text
Native all the way, until you need text
⚡ TL;DR · AI summary

A seasoned macOS/iOS developer reflects on the challenges of implementing rich text and Markdown in native Apple frameworks, despite years of experience and deep platform knowledge. After extensive efforts using SwiftUI, AppKit, and TextKit 2, the developer found that none provided reliable, performant text handling for modern chat applications. Ultimately, web-based solutions like Electron delivered superior results, raising questions about the viability of native tooling for complex text interfaces.

Key facts
Original article
Hacker News (Front Page) · Artem Loenko
Read full at Hacker News (Front Page) →
Opening excerpt (first ~120 words) tap to expand

I have been a native macOS / iOS developer for almost twenty years, and I want to say something about the usual “Oh, it is Node / Electron again… what a shame…” reaction. Recently, I tried to implement a simple chat with Markdown support in a pure Swift / SwiftUI app. And honestly, it is almost funny how immature all these “native” things still are when you step outside simple screens. Yes, you can achieve reasonable performance in SwiftUI. You can even convince yourself that jumpy scrolling is fine, and that a few lags here & there are acceptable. But then you want to select a whole Markdown document built from SwiftUI primitives, and you just cannot. By design. So, being smart & experienced, you move to NSTextView. It even supports TextKit 2 now. Great.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Hacker News (Front Page).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments