Reputation: 25525
I have one Xcode project in which I've completely set up the asset catalogue, and I want to use the same asset catalogue in another project. Is there an easy way to do this?
Upvotes: 9
Views: 6751
Reputation: 3092
It worked for me like this:
Drag the contents of the "Assets.xcassets" folder of the source project into the Assets pane of the new project.
(the only small problem, is that it will create a duplicate set for the app icon, just delete it. Or just thrown away the empty app icon set of the destination project be before importing).
Upvotes: 2
Reputation: 25525
First create the (empty) asset catalogue in your new project, In your new project click the target, and in the editor under 'App icons' click the button for 'Use asset catalogue'. Make sure the 'also use for launch images' is checked.
Now go out to the finder, and open two windows - one with your new project and one with the source project from which you're copying the asset catalogue.
In the source project, find the Images.xcassets
folder. Option-drag it into the new project folder so that it will replace the empty one you just created in Xcode.
Upvotes: 10