Here are what the two views you need to trigger the issue looks like
struct MyFlightsView: View {
@Binding var yikes: Int
var body: some View {
if yikes == 2 {
Text("TESTING")
} else {
Text("Hello, World!")
}
}
}
struct CruiseView: View {
@Binding var yikes: Int
var body: some View {
Text("Hello, World!")
.onAppear {
yikes = 2
}
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: