TL;DR
A seasoned macOS/iOS developer recounts the challenges of building rich text chat features using native SDKs. Despite familiarity with Apple’s tools, performance and feature gaps push developers toward web-based solutions like Electron, highlighting limitations of native frameworks.
A seasoned macOS/iOS developer reports that native SDKs such as SwiftUI, AppKit, and TextKit still fall short for building complex chat features with rich text and Markdown support, prompting a shift toward web-based solutions like Electron.
The developer describes attempting to create a simple chat app with Markdown support entirely using native Apple frameworks. Despite their experience, they encountered significant limitations in performance, text selection, streaming responses, and feature parity, which are critical for modern chat applications.
After multiple attempts with SwiftUI, NSTextView, TextKit 2, and AppKit, the developer found that performance issues, flickering, and difficulty achieving native-like behaviors persisted. They noted that implementing features such as context menus, dictionary lookup, and accessibility were time-consuming and complex.
Eventually, the developer turned to WebKit, which provided a working solution with good performance, typography, and native integration. They concluded that web-based solutions like Electron now outperform native SDKs for complex, long-form, rich text chat features, despite the initial preference for native development.
Why It Matters
This development highlights a fundamental challenge in the current state of native Apple SDKs: they are often insufficient for building feature-rich, high-performance chat applications with complex text interactions. As a result, many developers are increasingly relying on web technologies like Electron, which offer better performance, flexibility, and ease of implementation for these features. This shift could influence future app development strategies and platform priorities, especially for apps centered around rich text and interactive content.

ELECTRON FRAMEWORK DEVELOPMENT WITH JAVASCRIPT AND RUST: Hybrid desktop application design for Windows macOS and Linux
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Background
Apple’s native SDKs, including SwiftUI and TextKit, have historically been favored for their performance and integration with macOS and iOS. However, as chat applications evolve to require streaming, complex formatting, and advanced interactions, these frameworks reveal limitations. The developer’s experience reflects a broader industry trend where web-based frameworks are often chosen for their maturity and feature completeness in handling rich text and dynamic content.
Prior to this, native frameworks were considered the best option for performance and platform integration, but ongoing challenges with text rendering, selection, and streaming have shifted perceptions. The developer’s experience underscores the gap between native capabilities and the demands of modern chat and collaboration tools.
“Despite knowing the platform and its SDKs intimately, I still cannot make a simple chat with Markdown and message selection work properly using native tools.”
— the developer
“WebKit just works, with good performance and typography, while native frameworks fall short for complex, long-form chat features.”
— the developer
As an affiliate, we earn on qualifying purchases.
What Remains Unclear
It remains unclear whether future updates to Apple’s SDKs will address these limitations or if third-party frameworks will evolve to fill the gaps. The developer’s experience is anecdotal, and broader industry confirmation is needed to determine if this is a widespread trend or specific to certain use cases.
Markdown support text editor Mac
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
What’s Next
Expect ongoing discussions among developers about the viability of native frameworks for complex text features. Future updates from Apple may aim to improve these capabilities, but currently, many are exploring or adopting web-based solutions like Electron for their rich text needs.
WebKit-based chat app components
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Key Questions
Why are native SDKs failing for complex chat applications?
Native SDKs like SwiftUI and TextKit are optimized for simple interfaces and basic text rendering. They often lack the performance, streaming support, and feature parity needed for complex, long-form, interactive chat features, leading developers to seek alternative solutions.
Can native frameworks be improved to support these features?
It is uncertain. While Apple may update their SDKs, current limitations suggest that native frameworks are not yet fully equipped for such complex use cases, prompting reliance on web technologies for now.
What are the advantages of using Electron for chat apps?
Electron provides mature, performant, and feature-rich support for rich text rendering, streaming, and complex interactions out of the box, often surpassing native SDKs in these areas, with easier development and maintenance.
Will this trend affect future native app development?
Potentially. Developers may prioritize web-based frameworks for complex features, influencing platform development focus and possibly prompting Apple to enhance native SDKs to better support such use cases.