GroupBox View in SwiftUI 3

A GroupBox View is a simple way for you to create simple stylized views on your interface. You can create a box to house your content and handles stacking automatically.

GroupBox View in SwiftUI 3

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.

Apple Developer Documentation
Documentation Page for GroupBox View

Let's have a look at how this works. Become a free member or log in to proceed.