SwiftUI Previews in Xcode 12

Find out how SwiftUI Previews in Xcode 12 can help you iterate and build rich functional apps with ease. Whether you experiment with visual editing in the canvas, adding custom views and modifiers to the Xcode library, or structuring your app for an improved development workflow, you can leverage SwiftUI Previews to quickly and seamlessly iterate and develop new projects.

Visually edit SwiftUI views

Help your apps be the best versions of themselves: Discover how you can leverage Xcode Previews and SwiftUI to quickly iterate upon and improve your app. Find out how you can use the Previews canvas to build your app from the ground up, and view your interface in different environments like Light...

Watch now

Add custom views and modifiers to the Xcode Library

The Xcode Library is an easy way for you to discover available SwiftUI views and drag and drop them to the Xcode Previews canvas, enabling rich visual editing of your app. We’ll show you how to extend the content of the Xcode Library with your own views and modifiers, optimizing for reusability...

Watch now

Structure your app for SwiftUI previews

When you use SwiftUI previews during development, you can quickly create apps that are more flexible and maintainable. Discover ways to improve the preview experience by making small tweaks to your project. Find out how to preview multiple files at once, how to manage data flow for previews, and...

Watch now