Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 728 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 728 Bytes

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>