Post

Replies

Boosts

Views

Created

Don't understand my error
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 :
4
0
305
Feb ’23
matching list specs
Hello, I am a beginner on swiftUI and I would like to match a 2 elements of a list according to their location ("place" in my code). I'm trying to make a home automation application, so when we add a device by giving it its location (in deviceList), it will be assigned to the desired room. I tried to put : if room.place == device.place {at different location but it doesn't work. I put you some pictures without theif to understand: [ListView] (https://i.stack.imgur.com/zzSZz.png) [DeviceView] (https://i.stack.imgur.com/Mn6Am.png) [RoomView] (https://i.stack.imgur.com/Q5w8y.png) Thanks
1
0
335
Jan ’23