title: Using switch/enums in SwiftUI Views
body: <p>As of Xcode 11.4, SwiftUI doesn't allow <code>switch</code> statements in Function builder blocks like <code>VStack {}</code>, failing with a generic error like <code>Generic parameter 'Content' could not be inferred</code>. How can the <code>switch</code> statement be used in SwiftUI to create different Views depending on an enum value?</p>