Using the ViewBuilder Attribute to Implement SwiftUI Views in Methods

Photo by Alan Rodriguez on Unsplash

SwiftUI provides undeniably a funny and innovative way to create user interfaces. We can get great visual results much faster and with less pain comparing to UIKit, despite any lack of features SwiftUI might still has…



An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store