Importing design assets can be a tedious task, and here’s an open source tool submitted by Bader of Sourcebits that allows you to do it quickly and easily by simply dragging a folder called Asset-Generator-Mac.
As stated in the submission e-mail:
Asset Generator is a tool we’ve been using internally, which we just open-sourced, to aid working with Xcode asset catalog. We wanted to create a simple way to integrate our artwork slices from design to development while focusing on speed and ease of use.
We felt other solutions (whether photoshop/sketch plugins or apps) fell short by being repetitive, cumbersome, not compatible with agile workflows and in some cases functionally incorrect. We solved that by taking most of the heavy-lifting away from the user through features like:
* Automatically detecting asset types! If you follow Apple’s naming convention, there is no extra work needed. Icon assets will be detected as AppIcons, launch image assets will be detected as launch images. similarly with settings and Spotlight artwork as well as generic images with finegrain control using keywords. (more details in the README).
* Merging new assets into existing catalog without conflicts and overwrites so you can incrementally build assets as you go in a safe manner, which was critical in our agile-driven cycles.
* Preserves content made using Xcode such as slicing information or size classes.
* Easy to use UI with no prior knowledge of Xcode required. In fact, you don’t even need to have Xcode installed.
* Remembering last used workspace, either last folder or Xcode project, to reduce repetitiveness.
You can find Asset-Generator on Github here.
A great tool for importing design assets.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.