ViewBuilder transforms
SwiftUI ⟩ Views ⟩ ViewBuilder ⟩
// ⭐️ if ... else
struct ContentView: View {
var body: some View {
// _ConditionalContent<Text, Text>
if true { A } else { B }
}
}
Last updated
Was this helpful?
SwiftUI ⟩ Views ⟩ ViewBuilder ⟩
// ⭐️ if ... else
struct ContentView: View {
var body: some View {
// _ConditionalContent<Text, Text>
if true { A } else { B }
}
}
Last updated
Was this helpful?