In the last video, we learned how to use generics. Now, we will use @ViewBuilder to create closures where we can pass in generic types to our views. This is especially handy in SwiftUI when we want to build sub-views within parent closures (or containers).
73 Comments