Build a useful sidebar for your users

Pop-out sidebar menu in SwiftUI
Pop-out sidebar menu in SwiftUI. Photo by the author.

Today, I decided to mess around with a SwiftUI view that allows me to easily create a sidebar menu for content inside my apps. After designing a few prototypes, I generalized it into a single custom view class called SideBarStack, as shown below:

As you can see, the custom…

--

--