Hi Francis, I’m doing the photo gallery app, and in lesson Menu page, I run into this error ( tried StackO but not working) when adding $openMenu in .sheet method.
Accessing State’s value outside of being installed on a View. This will result in a constant Binding of the initial value and will not update.`
The code is:
.sheet(isPresented: $openMenu, content: {
ZStack{
VStack{
Text("Menu")
}
}
})
Pls let me know how to fix so I can proceed. I’m on Xcode 14.3.
Thanks!