/icon-resizer

Automatically resizes icons for your Xcode project

Primary LanguageSwiftDo What The F*ck You Want To Public LicenseWTFPL

icon-resizer

Automatically resizes icons for your Xcode project

How?

The Swift script takes the path to a large app artwork icon (typically 2048x2048) as its first argument. The second argument is the path to your AppIcon.appiconset in your Xcode project. Then, the large icon is simply resized to fit all the sizes selected in Xcode. It's like magic!

Why?

There are plenty of sites available that resize your icons for you, however I don't feel its appropriate to upload a client's artwork to a random site, nor do I want to have to manually drag every icon into xcode once the process is complete.

Usage

$ swift generate-icons.swift <path/to/largeIcon.png> <path/to/Assets.xcassets/AppIcon.appiconset>