From the course: SwiftUI Essential Training

Unlock the full course today

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

Presenting sheets

Presenting sheets

- [Instructor] Alerts give you a quick way of presenting a short amount of information and making decisions with buttons. For more involved dialogue you're going to need a sheet. Sheets work on the same principle as alerts. You have a presenting variable, but unlike alerts any view can be presented, allowing for customization to the view. So we're going to replace our alert and so I'm going to comment it out here. And that should be all of it so I'm going to need a command slash. And underneath that I'm going to put our sheet. Now to help us out here, I've created a view you can find in the downloads, which is a very fancy sheet. And so it's called order detail view. It is a souped up version of order item view. And I'm going to put it right in front of menu item view so we can go between these two quickly. And destinations copy, all those are correct, so we're good. And let me just look at this real quick so you…

Contents