MENU

Fun & Interesting

How to use @ViewBuilder in SwiftUI | Advanced Learning #9

Swiftful Thinking 30,914 4 years ago
Video Not Working? Fix It Now

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). 🤙 WELCOME BACK 🤙 WEBSITE: https://www.swiftful-thinking.com DISCORD: https://discord.gg/tSzJGx9RwE GITHUB: https://github.com/SwiftfulThinking/ SAY THANKS: https://www.buymeacoffee.com/nicksarno

Comment