@ViewBuilder property wrapper allows to pass views as parameter to build custom views.
It’s posible to create our own views like HStack or VStack.
In this example a custom sheet view receives a closure as parameter that provides the views that will be injected.
Then this custom view can take views as the rest of the swiftui components.
Sometimes we just want to simplify the logic of our views. In this case we can create a method that returns some View.
And then use the method to inject the view removing the logic and increasing the readibility.