© Bear Cahill 2021
B. CahillUI Design for iOS App Developmenthttps://doi.org/10.1007/978-1-4842-6449-2_8

8. SwiftUI Canvas Preview

Bear Cahill1  
(1)
Denton, TX, USA
 

Designing a great UI may not be your task. Developing the UI design in SwiftUI code likely is since you’re reading this book. If you’ve done it in the past with Interface Builder or even in code, you likely used Preview for your Storyboard. It shows you how the UI will look on a variety of devices.

However, you more likely ran the app in the simulator or on a device to have both real data and interaction. Of course, that takes more time: compiling, installing, running, and navigating. Then make a change to the UI or code and repeat.

The Canvas Preview allows you to see the UI right alongside ...

Get UI Design for iOS App Development: Using SwiftUI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.