We have 3 targets for 3 different apps offering similar sets of features but different UI. all these 3 targets are having different .xcassets files. But now as per Apple 4.3 guideline, they are asking us to create one container and handle different UI from the same container.
Now as we already have different image assets files for different targets, how can I programmatically switch between different .xcassets files.
You can have multiple
xcassetsfor multiple targets, let's say you have A, B, C target and have three differentxcassetsfor each target, you can solve this issue with two ways:Add images with the same name for different targets and access the images directly. Xcode will run time access specific
xcassetsimages.Add checks for different targets at the time of accessing images
Coding Example: