Implementing the Sidebar
As we have created a fresh project, the coding standards aren’t in line with my personal preference. So, firstly, I will change the standards. Feel free to take a few moments to do the same.
NavigationView
Let’s implement a NavigationView
to provide a split-screen layout, which will allow us to code a sidebar. Doing so is simple. Remove the current body code and replace it with the following:
var body: some View{ NavigationView { List { Label( "Discover", systemImage: "" ) Label( "Arcade", systemImage: "" ) Label( "Create", systemImage...