Start by creating a struct for a container that will hold our tabs. The struct will be of type View. To pass the tabs to our container, we need to have a parameter that holds our tabs. This parameter will be content. It is of type Content that conforms to View. Usually, tabs will have icon images and they might not have titles. Because of this, we can make our titles optional. Create an init and make sure to have the parameter attribute [@ViewBuilder](http://twitter.com/ViewBuilder)
before the content parameter. This will allow us to have a closure we can provide to some child views.
#swiftui #programming #mobile #xcode #swift