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…


