I just tried out NUI this weekend (https://github.com/createch/bullrunnerapp), and ended up abandoning halfway through. My code became worse because of it. Some of the style code is in the ViewController, some of it is in the NSS file. Going to have to test nativeCSS.
Looks like this could be better than NUI. Unlike NUI:
- You can have multiple selectors, like in normal CSS
- More css-like names, border-radius (rather than border-width as NUI calls it)
iOS appearance proxy is good at setting a few styles on standard apple components. But CSS is more powerful, easily shared and cross platform then iOS code!
It would be really great to see an actual running example so we could look at it on our device. (edit - like the pixate playground app on the store - for those of us who are too lazy to set up a new project just to give it a quick look!)
15 comments
[ 3.4 ms ] story [ 48.1 ms ] threadLooks like this could be better than NUI. Unlike NUI:
- You can have multiple selectors, like in normal CSS
- More css-like names, border-radius (rather than border-width as NUI calls it)
- Shorthand properties border: 1px solid #fff;
- Shorthand color codes: #fff
Also, $10/app is much better than Pixate's $199 license.https://github.com/tombenner/nui http://www.pixate.com/
My vision is CSS is great to style, but using standard native components will always be quicker than JS libraries like Phonegap and the sort.
And a sample app you can play with here: http://nativecss.com/docs/tutorials/intro/ios
http://nativecss.com/assets/samples/ios/Login%20Demo.zip
Or, there's a version in the app store:
https://itunes.apple.com/gb/app/clearer/id592386667?mt=8&...
Which is styled with this CSS: https://dl.dropbox.com/s/h5cr55q2f14x1fa/styles.css?dl=1
Cheers