Hi, I make a code from a video and it happens that when I copy the code of this person, Xcode returns: Binary operator '==' cannot be applied to operands of type 'Binding<>' and '' .
I put in link 3 screenshots from my code :
Don't understand my error
Hi! It's just a typo. You've declared the attribute in the MinuteurManager class as TimerMode
with a capital T at the beginning, while in your implementation you've written it as timerMode
with a lowercase t. Variable names in Swift are case sensitive :)
So you should declare:
var timerMode: TimerMode = .initial
in addition to the compilation error, it is really rsiky (and bad practice) to give the exact same name to a var and a class or struct or enum
Thanks for your advices !
Thanks for your advices !