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.
Challenge: Add a grid view to the app
From the course: Complete Guide to SwiftUI
Challenge: Add a grid view to the app
- [Instructor] We made the menu grid view with favorites, but have yet to integrate it into the app. Your challenge is to be able to switch between menu grid view and menu item view. We'll need a value and content view to use as a toggle. Add to the status bar an icon which, when tapped, also toggles between the two. Try not to use a button or toggle. Use the SFSymbol square.grid.3x3.square and list.bullet.rectangle. Finally, let's simulate loading user preferences by a random Boolean value every time we have this view appear. Okay, give that a try.
Contents
-
-
-
-
-
-
-
-
(Locked)
Toggles and steppers6m 8s
-
(Locked)
Pickers6m 10s
-
(Locked)
Moving data in pickers5m 54s
-
Text input7m 1s
-
(Locked)
Lazy grids6m 37s
-
(Locked)
Tap gestures3m 1s
-
(Locked)
Reacting to changes5m 59s
-
(Locked)
Challenge: Favorites grid1m 46s
-
(Locked)
Solution: Favorites grid8m 55s
-
(Locked)
Challenge: Add a grid view to the app40s
-
(Locked)
Solution: Add a grid view to the app6m 10s
-
(Locked)
-
-
-
-
-
-
-
-
-
-