This a quick and dirty utility to create an iconset to give a program an icon.
- Click on the image button and select the image
- Click on the destination button and navigate to the Assets.xcassets folder within the application's project. The default name is AppIcon which is the name Xcode uses by default for the program's icons. Since there is already an AppIcon folder present, the program will ask you confirm that you want to replace it. You can change the name from AppIcon if you need to add other icon assets.
- Select the desired devices. The default is Mac, iPad and iPhone
- Click create. The AppIcon asset will be updated.
The program creates a folder with images of the desired sizes and a .json file to describe them to Xcode.
An iconset is just a folder with the images and a contents.json file describing their usage.
![]()
- The program will resize the image to a square area. If the source image is not square, the result will be centered and sized to fit all of the image, which will leave extra space on the edges of the shorter dimension.
- I have found that for non-rectangular images, a .png image with a transparent background will make a nice icon.
- The program attempts to make the icons with the desired size in pixels, so it has to account for the difference between points and pixels (which is an issue on high resolution screens).
- I haven't figured out how to add rounded corners to a square image.
- Alternatively to directlly saving the iconset to the programs Assets, you can save the folder somewhere else (such as the desktop) and drag the folder to Assets.
The sample image used for the program icon was downloaded from: pixabay