Created
October 24, 2016 11:29
-
-
Save ManWithBear/d1e1a02433d1e379c50a1cc79cb17683 to your computer and use it in GitHub Desktop.
Script for xcasset enums regeneration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script: | |
if which swiftgen >/dev/null; then | |
swiftgen images ${SCRIPT_INPUT_FILE_0} --output ${SCRIPT_OUTPUT_FILE_0} | |
else | |
echo "SwiftGen does not exist, download from https://github.com/AliSoftware/SwiftGen" | |
fi | |
Input: | |
$(SRCROOT)/{Project Name}/Assets.xcassets | |
Output: | |
$(SRCROOT)/{Project name}/UIImage+Assets.swift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment