awkward / beam

Beam: the open source Reddit client for iOS
https://beamreddit.com
GNU General Public License v2.0
269 stars 37 forks source link

Core Data stack safety improvements #28

Closed robinspeijer closed 4 years ago

robinspeijer commented 4 years ago

privateContext is now unavailable outside of Snoo, it is too easy to make mistakes with this! I've added a few helper methods to keep using the private background context directly, but a bit safer by forcing code to sync to the context queue.

I think we should consider replacing DataController with NSPersistentContainer.