Post

Replies

Boosts

Views

Created

Cannot find '' in scope
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.
2
0
3.6k
Jan ’23
Error "Missing argument for parameter #1 in call.
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
Apr ’22