Originate / OriginateTheme

OriginateTheme is a lightweight user interface theming framework.
MIT License
5 stars 0 forks source link

Compound Numeric Types (CGSize, CGOffset, CGRect, UIEdgeInsets,...) #18

Closed pkluz closed 7 years ago

pkluz commented 7 years ago

@chhaylatte @allewun

The components fields require additional fields that can handle values.

E.g. given:

"components" : {
        "tabBar" : {
            "colors" : {
                "background" : "FFFFFF",
                "tint" : "4A4A4A"
            },
            "iconOffset":  { "x": 15, "y": 20 }
        },
...
}

should generate:

@property (nonatomic, assign, readwrite) CGOffset tabBarIconOffset;

Similarly:

"textInsets": { "top": 15, "left": 20, "bottom": 10, "right": 5 }

should generate:

@property (nonatomic, assign, readwrite) UIEdgeInset textInsets;

and

"elementFrame": { "x": 15, "y": 20, "width": 10, "height": 5 }

should generate:

@property (nonatomic, assign, readwrite) CGRect elementFrame;

similar goes for CGSize

chhaylatte commented 7 years ago

ok, looking into this