Thinking about making my SwiftUI code cross platform, beyond Apple.

I don’t really want SwiftUI on every platform and dealing with the impedance mismatch of SwiftUI and the host - despite having a few OSS engines that do it.

What I have come to realize is that using SwiftUI @Observables is all you need: swap the actual front end for a tightly coupled UI to the host platform, but keep your logic shared.

And you can have an LLM do the heavy lifting for you.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/Migueldeicaza/statuses/116190215369356717 on your instance and quote it. (Note that quoting is not supported in Mastodon.)