|
After calling deleteAll() and creating a new dataset, old data is still visible in the ProjectsView. At least for me! Is this expected, is the View holding on to some cached data? |
|
Same question here. Hitting "add" several time should to my understanding delete all projects/ items and create 5 new projects. However old data keeps staying. |
|
Well I really don't know what went wrong here, but editing the Add Data button in HomeView and rebuilding made it work as expected. Weird. |
|
|
|
I tested to add a new button doing only the delete, and it worked fine. Then I undid my edit, back to the original, and it still worked. I really can't figure out what happened. 🤷 |
|
Looks like we need a call to dataController.save() in HomeView after the call to dataController.deleteAll(). Look at this tweet. |
|
|
|
This is still not updating until I restart the app even after doing
|
|
For anyone still having this issue, I found another solution here that worked: https://www.hackingwithswift.com/forums/plus/ultimate-portfolio-app-homeview-not-updating-after-datacontroller-deleteall/8318/11692 |
|
Actually Usful Url For Datacontroller Issue - https://www.hackingwithswift.com/forums/plus/ultimate-portfolio-app-homeview-not-updating-after-datacontroller-deleteall/8318/11692 |
SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
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.