ColorAutoGen is a swift code generator for iOS (Colors and UIColors) Swift Package.
ColorAutoGen create a Swift Package for your colors from a color xcassets.
Color xcassets -> Swift Package
$ git clone https://github.com/leoparenti/ColorAutoGen.git
$ cd ColorAutoGen
$ make
$ color-autogen --variable <variable> --source <SOURCE_PATH> --output <OUTPUT_PATH>
or
$ color-autogen -v <variable> -s <SOURCE_PATH> -o <OUTPUT_PATH>
for autogen Demo Package
$ color-autogen -v yourNamePackage -s Media.xcassets -o ../
yourNamePackage will generate YourNamePackageColor Package
--variable: used for UIColor.<variable>.nameColor and package name '<Variable>Color'
--source: Path of the color xcassets
--output: Path of the output Package
All three options are required for the command to run. For more details use: color-autogen --help