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
From the course: SwiftUI Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
Alerts5m 33s
-
(Locked)
Presenting sheets8m 47s
-
(Locked)
Tab bars4m 53s
-
(Locked)
Stack navigation9m 38s
-
(Locked)
Two-column navigation split view8m 36s
-
(Locked)
Three-column navigation split view7m
-
(Locked)
List interaction5m 46s
-
(Locked)
Challenge: Debugging2m 45s
-
(Locked)
Solution: Debugging10m 32s
-
-
-