
We can only build the body of a SwiftUI view because of a result builder called @ViewBuilder
.
I introduced result builders in Daily Coding Tip 073, if you want to check that out.
As the View
protocol requires @ViewBuilder
we do not need to explicitly add this result builder to the body property.
But what if we want to…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.