mirror of
https://github.com/rensbreur/SwiftTUI.git
synced 2026-04-03 00:18:31 -06:00
Separate UI Logic from Rendering Implementation #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hectr on 9/20/2024
Hello @rensbreur and contributors 👋,
I've been experimenting with the idea of supporting alternative rendering backends/engines for SwiftTUI.
This could open up interesting possibilities. For example, a framebuffer-based rendering backend, or even support for developing SwiftTUI interfaces within Xcode Previews or the Swift REPL. While these ideas might not all fit directly into the core SwiftTUI framework, they could serve as valuable third-party additions, helping create a richer ecosystem for terminal-based UI development in Swift.
You can check out a working example of a renderer-agnostic SwiftTUI implementation in hectr/SwiftTUI#1.
Playing with the idea of alternative backends, I’ve added mouse support to SwiftTUI with very little changes to the core framework. Which you can see in hectr/SwiftTUI#2.
Looking forward to your thoughts!