Search code examples
iosxcodeswiftuixcode11

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


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

XCode 11 Beta - Screenshot

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?


Solution

  • 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