|
Hi, I have a problem where a change in the View is not updating the underlying object in the model. Idea here is to generate a dynamic list of attributes of all different types (string, date, bool) and in the GUI all looks fine but when hitting the Save button, I can see that the data is not updated. What am I missing here? Full working demo project below:
Max |
|
What are you expecting to see and what are you actually seeing? From what I can tell, your code is functioning as intended. |
|
Let's say I just add a single boolean attribute and set the toggle to On and hit Save, I get
in the console output. I would have expected to see
|
|
I am an idiot ... in my AttributeView I am actually not updating the item ...
needs to change to
and then it works of course ... |
SPONSORED Ready to dive into the world of Swift? try! Swift Tokyo is the premier iOS developer conference will be happened in April 9th-11th, where you can learn from industry experts, connect with fellow developers, and explore the latest in Swift and iOS development. Don’t miss out on this opportunity to level up your skills and be part of the Swift community!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.