Comments (6)
I had been thinking about this a while back; the issue is that the implementation of a given property varies greatly among different UIKit classes. We could add a lot of coverage for properties in NUIViewRenderer, but almost all of them wouldn't be usable in subclasses, or at least there would be better ways to implement them in subclasses.
That said, I haven't sat down and tried to switch over to this setup, so it's very possible that I could be overlooking something. I'm always for DRYing up code, so if you or anyone else wants to try doing this and are able to simplify things with it, definitely let me know!
from nui.
Thanks Tom, I only toyed with the refactoring a little and haven't sat down to see any potential. I'll take a look and see if there is something we can do here, or something a little different to share common implementation of styles. If I come up with anything I'll let you know.
from nui.
Great, thanks!
from nui.
This would be great, any update on this? We'd be able say define a class for UIButton and then just modify the background color for some of them, it'd be awesome! extremely flexible.
from nui.
@imton Sorry, I actually lost track of this a while ago. I ended up using Pixate for a while, and then we decided back before Pixate was officially released it wasn't performant enough. That cause me to look at implementing our own succinct style engine.
from nui.
@pryomoax oh! any plans to open source it? :)
from nui.
Related Issues (20)
- Import Errors in Swift HOT 4
- Not able to run it without using CocoaPods HOT 5
- code comments in .NSS file
- Adaptive font-size HOT 1
- "nil" passed to a callee that requires a non-nil argument
- Make property nuiClass IBInspectable HOT 4
- Set content mode of background image HOT 1
- Where to put the custom .nss file HOT 1
- Nested color definitions possible?
- How can I make a container view to have corner radius only in some corners?
- Not all system fonts are supported HOT 1
- pod 'NUI' - Not including pull request #307 | non-module issue
- Not works with swift3 HOT 3
- Doesnt work with XCode 9 HOT 1
- Padding doesnt working properly in UITextview
- How to set UINavigationBar shadow-image empty
- Forcefully applying nui for classes which doesn't have nui applied!!! HOT 2
- name' is unavailable: not available on iOS HOT 14
- App crashing on long press of keyboard globe icon when we are trying to switch different keyboards. HOT 1
- override_didMoveToWindow infinite loop when running Xcode 12 and iOS 14 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nui.