ios - Xcode -using two xcassets how would i override -
let me explain architecture i'd build in xcode. here photo of xcassets have created in project structure:

from image can see have created 2 xcassets folders. first 1 called images.xcassets hosts images common both targets.its membership in both target1 , target2. xcassets sheet filled many images inherited fork.
the images-override.xcassets folder on other hand, i'd put images not common both targets. target membership directory should target2.
what im trying accomplish: doing way, if attempt retrieve image called myimage.png should first check images-override see if image overriden, if not found there should check images.xcassets image.
so question order images searched for. i'd project first check images-overriden.xcassets sheet check (if necessary) images.xcassets folder. ideas ?
in general, cannot include multiple assets same name in xcode. purpose, i'd recommend naming convention:
filename.png filename-override.png
for example. when loading image, first check if filename-override.png exists, if load it. if not, load filename.png.
Comments
Post a Comment