iOS framework/bundle with replaceable assets -
i trying make ios framework basic ui-controls. want users re-skin theme of controls therefore loading assets, storyboards , xibb files asset bundle.
i using image.xcassets assets. bundle generation changes assets.car
i want assets replaceable within bundle users re-skin. proper way achieve that?
resources / images assets added app bundle. cannot add in bundle framework @ runtime ( user cannot change skin bundle )
you can achieve 2 ways
at launch, check whether image files exist in documents directory. if not, copy bundle images document folder.
check name of images why loading bundle after check local / documents folder same copy of image , use new skin of user wish .
Comments
Post a Comment