From the course: Complete Guide to SwiftUI

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

The code window and canvas

The code window and canvas

- [Narrator] With all that background now, it's time to do some SwiftUI coding in introducing you to the work environment. Open up the canvas again with the command Option + Return. And if you need to, resume the preview. It builds, it shows you the device and preview of the code you are working on. That default implementation of preview type, is whatever you have set in your simulator. Currently, I have it for iPhone 14 Pro here. Now, I'm going to change that. So, we're going to make that a Pro Max, in this case. I'm going to go down here to Pro Max after clicking on the Pro, and set that up to Pro Max. It may take a few minutes for you to do that, depending if you've got that simulator loaded or not. And you can zoom in and out on the image if you want, using the little buttons on the side here. There's also one to turn it to a hundred percent, and one that you can fit it in the window. And I tend to use the fit in window one the most. Now, with this canvas running, it changes in…

Contents