What is the use of “Preview Assets” assets catalog in Xcode 11 beta?

社会主义新天地 提交于 2020-12-08 06:33:17

问题


What is the use of "Preview Assets" assets catalog in Xcode 11 beta?

I have just created new project with SwiftUI. I have checked release notes of Xcode 11 beta but there is no information about this assets catalog.

What is the use of it?


回答1:


Now, when you layout your views you can preview it in Canvas (the window from the right side of the code editor). Obviously, some images and other data for your app you can get only in runtime, from your API for example. So all stubs can be placed into Preview Content folder, in particular in Preview Assets



来源:https://stackoverflow.com/questions/56511949/what-is-the-use-of-preview-assets-assets-catalog-in-xcode-11-beta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!