tolo / InterfaCSS

The CSS-inspired styling and layout framework for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

override or extend registered properties

tbrannam opened this issue · comments

I have been trying to extend some properties to support UIControlState (tintColor) for a custom control. But it appears that a duplicate custom property does not get called - it would be great if custom properties would get called - ideally with the setter block for the original implementation - so that the original implementation could get called in the event that the override's special doesn't have to reimplement the original version.

Great idea - I'll certainly look into this.

similarly it would be nice to be able to modify typeToParser

For example, if I want to add a new fontFunctionParser I would think I could modify

typeToParser[@(ISSPropertyTypeFont)] = [Parcoa choice:@[myCustomFontFunction, fontFunctionParser, fontValueParser]];

which would allow my to hook into processing for a font - and fallback to the other parsers.