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

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