So, I'm attempting to code an app for my college class. Since I just started learning about swift there are some errors here and there that I somehow fixed along the way until now. I duplicated some pages in order to re-use them in order to provide more information in a similar way.
The error appears in "ForEach(examples) { example in"
var detail: some View {
ForEach(examples) { example in
if example.id == selectedID {
ExampleView(namespace: namespace, example: example, show: $show)
.zIndex(1)
.transition(.asymmetric(
insertion: .opacity.animation(.easeInOut(duration: 0.1)),
removal: .opacity.animation(.easeInOut(duration: 0.3).delay(0.2))))
}
}
}
}
7
0
2.4k