Cosmo / OpenSwiftUI

WIP — OpenSwiftUI is an OpenSource implementation of Apple's SwiftUI DSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Svelte mode

michaeleisel opened this issue · comments

https://github.com/sveltejs/svelte is a "compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM". The same principle can be applied here, turning declarative Swift code into imperative for better performance. It could also turn Swift into a lower-level language like C++.

@michaeleisel Do you have a use-case in mind?

Using UIKit/SwiftUI will always drop frames here and there, so performance is always a place for improvement. Also, the popularity of svelte suggests that it's helpful for a wide variety of use cases