GeertWille / sketch-to-xcode-assets-catalog

Export assets for iOS directly from Sketch into Xcodes assets catalog
GNU General Public License v3.0
221 stars 17 forks source link

Allow different screen densities for export #16

Closed anas-ambri closed 9 years ago

anas-ambri commented 9 years ago

Just a basic implementation that would allow the user to select the density at which the design was made (instead of assuming that it was at @1x). Not sure if this is the best way to go about it, but it seems to work, albeit not optimally.

This will show a popup asking for the density at which the design was made, then apply a coefficient to the scaling of the layer when exporting. An improvement on this would be to save the value chosen by the user the first time, and thus avoid showing the popup every single time. If you have an idea on how to achieve this, please let me know, and I will add it.

Fix #8

GeertWille commented 9 years ago

I fixed this in the new release using few pieces of your code... Thanks!