erichoracek / Motif

Lightweight and customizable stylesheets for iOS
MIT License
878 stars 64 forks source link

Add swift symbol output #56

Closed erichoracek closed 9 years ago

erichoracek commented 9 years ago

By passing -s to the Motif CLI, it can now generate swift 2.0 enums, with raw values of the string classes.

This additionally updates the Motif CLI to write generated theme symbols files to a temporary directory before copying them to the destination folder. This allows it to ensure that theme files are not overwritten repeatedly if symbol generation has been added as a "run script" build phase, first comparing the existing files with the one in the temporary directory before copying.

Closes #11