I started dis app attempt last year and decide to retake on it. But since I updated to the last version of Xcode I started to hace this issue that I can't seem to figure it out.
I was comparing it with another version of this same project that I had and I still don't understand the error.
English ain't my first language, sorry for any misunderstanding.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
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))))
}
}
}
}