问题
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