After migrating image resources to an Asset Catalog the app builds and runs correctly but the assets don't show up in Xcode's storyboard.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In my case this occurred because I used the full asset name including file extension (i.e. '.png') in Storyboard.
However, the name for the asset needs to match the name of the Image Set in the Asset Catalog:
So by removing '.png' from the image name in Storyboard it solved the problem.
回答2:
I've encountered a similar problem that storyboard just not display the images I set in Asset.
But my case is a little bit different. And the answer is pretty simple.
I only drag one image to the image set and accidently put it to "3x" where storyboard would load "1x" from image set.
Hope this would help someone else and save their time. Don't make the silly mistake as I did.