Having watched the video SwiftUI Animations - 3 Simple Techniques (ft. Mark Moeykens) it turns out that Apple changed something and this message appears
‘animation’ was deprecated in ios 15.0 use withanimation
Researching it, it appears that animation now requires a 2sd argument called value that conforms to equatable protocol
What I can’t work out is what to use?
There are 3 lines of code like this
the 1st one and last ones of the video
1st one:
.animation(.default)
I changed it to
.animation(.default, value: animvalue)
— with a line of code added in the declarations: @State private var animvalue = false
Tried a bool, Int… Nope my animations stop working
So please what should it be?
Thank you