3 ms·
Hi , Yeah I was wondering about some of this stuff as well. I don't understand how you could hack UIKit to work this way. Do you think this is really all that
by thewarrior 11y ago
Hi ,
Yeah I was wondering about some of this stuff as well. I don't understand how you could hack UIKit to work this way.
Do you think this is really all that superior to using KVO and bindings (We don't have bindings on iOS but still .. ) ?
Also animations aren't easy to do this way.
I think we can follow some of the guidelines they have here :
http://hackflow.com/blog/2015/03/08/boiling-react-down-to-few-lines-in-jquery/ http://hackflow.com/blog/2015/03/08/boiling-react-down-to-fe...
And reap most of the advantages.
As for optimizations ,
He mentions immutability , we already have that using Swift structs.
Then there's the differ
The diffing algorithm shouldn't be a one size fits all super algorithm but a collection of dumb components you can put together to get the perfect diffing behaviour for your particular use case.
The differ should also animate the state transitions appropriately where necessary.
Then we have this :
http://componentkit.org/ http://componentkit.org/
Though I haven't had the time to look into it. It has to be good since FB claims they rewrote their whole app in it.