The power of @ViewBuilder in SwiftUI

Swift function builders allow us to create APIs which provide a DSL-like syntax. ViewBuilder is one such function builder, and is used by SwiftUI to create views. In this post, Majid shows us how we can build our own reusable SwiftUI views, using ViewBuilder to separate our presentation logic and content.