SpacePod 37 PodList Refactor
The changes depicted in 36 result in a failure to load on first launch. The following changes to PodListView fix the issue, and begin the work of decluttering our PodListView
.
Goals
- Fix first launch bug introduced last time
- Move CoreData related functions to
Persistence
Fix Bug
PodListView
Clean Up
- Cut and paste
delete
andsave
intoPersistence
. - prepend
viewContext
withcontainer.
save()
toPersistenceController.shared.save()
delete()
toPersistenceController.shared.delete(pod)