3 ms·
I've been working on a very similar framework[1], but wasn't satisfied with the ergonomics enough to release it. My plans were to extend the Swift compiler wit
by PabloSichert 7y ago
I've been working on a very similar framework[1], but wasn't satisfied with the ergonomics enough to release it.
My plans were to extend the Swift compiler with JSX-like syntax[2] that makes use of the declarative framework. Of course that's still possible, especially now with a canonical "Apple" way of building declarative interfaces in Swift.
I'm a bit sad that with the announcement of SwiftUI my implementation will not stand a chance anymore, but I definitely learned a lot along the way how declarative rendering and reconcilation works in detail.
Bottom line - this is very great news for native app development, declarative UI makes it vastly more easy to reason about code.
[1] https://github.com/PabloSichert/Sx/blob/master/Example/Incrementer.swift https://github.com/PabloSichert/Sx/blob/master/Example/Incre...
[2] https://facebook.github.io/jsx/ https://facebook.github.io/jsx/