From the course: Complete Guide to SwiftUI

Unlock this course with a free trial

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

Previewable

Previewable

- [Instructor] Up to now we've had issues with testings of features due to binding variables and previews. We've had to use constant to launch the previews if we had a binding variable. Starting in iOS 17 previews were revamped. And I want to explore that with you. So let's head over to menu grid view. And we got too many tabs up here, so I'm going to get rid of some of them. So I'm just going to close the other tabs and we're not going to need a navigator for a while so we can get rid of that. All right, so we got our menu grid view and we do have a problem. You know, if you tap on one of these pizzas, nothing happens, although we're supposed to be selecting 'em. So how do we figure that out? And we go down here to our code. You'll see that we have previews. Now you may be seeing this kind of preview that I have here, which is a preview provider. There's a newer version, which if you're using XCode and you made these files from scratch, you may see. And that's the new preview macro…

Contents