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

9. Design for Previews

Bear Cahill1  
(1)
Denton, TX, USA
 

The Canvas is a powerful tool when designing the UI of your app. However, it’s more than that. Since the previews shown in the Canvas are the actual user interface, it shouldn’t be considered just a “preview” in the typical sense. Similarly, since it runs related code, it shouldn’t be considered just the UI.

Previews in the Canvas are closer to the simulator than the past. With Interface Builder, the UI was just the design of the interface. And the Preview of the past was a fairly lifeless rendering of that interface.

Just as the user interface design has been changed into code in SwiftUI, ...

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.