Create a Default View Body To Apply When One Is Not Provided
Daily Coding Tip 195
I often set properties up in a SwiftUI before I get around to the body property required by the View protocol.
In many previous Daily Coding Tips I got around this by declaring my ContentView type without conforming to the protocol, and later adding View conformance in an extension. Another way to deal with this mig…
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.

