I'm not familiar with SwiftUI, but have you seen NiceGUI: https://nicegui.io/
You define your UI in Python and the end result is a Vue/Quasar UI stylable with Tailwind (in case you want to poke at that) that is hosted as a FastAPI app.
You define your UI in Python and the end result is a Vue/Quasar UI stylable with Tailwind (in case you want to poke at that) that is hosted as a FastAPI app.
I've also written a vscode extension to support some of the nicegui workflows, just search "nicegui" in the extension marketplace.
(I'm a huge nicegui fan + contributor + I build tools and libraries for it)