Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check "SwiftFormat" installed via CocoaPods. Add a new "Run Script Phase" with this gist.
SWIFTFORMAT="${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat"
if [ ! -f "$SWIFTFORMAT" ]; then
echo "warning: SwiftFormat not installed!"
exit 1
fi
$SWIFTFORMAT ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.