Skip to content

Separate UI Logic from Rendering Implementation #39

@hectr

Description

@hectr

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#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#2.

Looking forward to your thoughts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions