One of the new types of views introduced on the new version of SwiftUI, at WWDC 2021, was the
GroupBox View. As in the documentation, a
GroupBox View is a stylized view that gives you an iOS style view in which you can place your content. It works as a pretty container to help you highlight a piece of information in your interface. Also, you can stack them and SwiftUI will handle the colors for you.
Let's have a look at how this works. Become a free member or log in to proceed.