![]() New Xcode projects contain a “Preview Assets” asset catalog by default.Īs Apple expects us to use SwiftUI previews more and more, they want to make it easy for us to provide sample data to use within those previews. You might have wondered before what the use of this asset catalog is. When creating a new project in Xcode 11 or above, your projects will include a folder called “Preview Content” including an asset catalog named “Preview Assets”. What is the use of the “Preview Assets” asset catalog? That’s right you can even add code references! More about that later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |