Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use different assets with same name using multiple targets

Tags:

xcode

ios

swift

I'm trying to build an app with multiple targets, each should have different asset versions. The business requirement is to have the same app but with different branding assets. I don't want to copy and paste the project and change icons manually because this won't be efficient.

As an example, I have a logo in the assets catalog, both Target X and Target Y need to see the asset, but both targets need to see a different version of the asset.

like image 983
Mohamed Shaban Avatar asked Dec 18 '22 17:12

Mohamed Shaban


1 Answers

You can do this by creating additional Asset Catalogs, these can be named accordingly, they will need to be added to your required target, Target Membership.

enter image description here

enter image description here

Having different collections you are able to have the same asset names and the targets will work as expected.

like image 60
RichAppz Avatar answered May 22 '23 05:05

RichAppz