robertwijas / UISS

UIAppearance Stylesheets
MIT License
1.23k stars 80 forks source link

Style photo skins #50

Open hake opened 8 years ago

hake commented 8 years ago

Hi Robert,

I’m building an app that let the users share photos with football live scores over it, we have multiple score designs right now, i’m styling using interfacebuilder .xib files, my current problem is that i have some sports teams that want to join with oficial skins packs, and we have to update the app everytime we want to add a new skins pack.

What we do right now is, we create an image 1080x1080 with the non dynamic items of each skin and then we position the dynamic elements in place using interfacebuilder.

I know that UISS can be used to style app UI/UX elements, my skin pack are 8 skins per pack, my specific question is :

Can i use UISS to create multiple UISS/Json to style (font-family,font-size, background-image, images-fields, position etc) each skin even from the server ?

Note: Dynamic items i get from a live scores api and are always the same , home_team , away_team, home_score, away_score, so i create a skin model with this items and just replicate

Thank you for your help

robertwijas commented 8 years ago

OMG. I totally missed this github notification. So, so, sorry.

UIAppearance have some issues when you're setting the same property more then once. I haven't tested it with iOS 9, but with previous versions every call to proxy would generate additional instance call, so if you're reloading theme often you might hit some performance issues.