|
I want to build an App that stores Reminders (e.g Quotes) and displays it on the ContentView. You can create own reminders or get them from another View that has an Array of Reminders stored that I manually typed in. But every time I add one from my ExploreView to the array that is on the ContentView I append a Struct with the UUID() of the Element from the Explore View. But when I go back into my exploreView from my ContentView all Elements have a new UUID I'm also curious why that generates new UUID() but the UUID() from the stored Elements in my ContentView stay the same.
I tried to outsource the ExploreReminderArray to a outer class as you can see but that still didn't work. |
|
Why do you have I can imagine that a phrase is only attributable to one author. Anyway, these could be For a similar reason, unless you plan to have changeable 'id's then this should also be a
This will cause a XCode warning for the 'id', so you need to specify what are the coding keys for the
|
SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.