Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Core Data Manager should listen for Terminate #42

@regnerjr

Description

@regnerjr

Right now core data does its final save, when the app terminates by inserting itself into

    func applicationWillTerminate(_ application: UIApplication) {
        CoreDataManager.sharedInstance.saveContext()
    }

It would be really great if the CoreDataManager could just listen for the NotificationCenter notification for UIApplicationWillTerminate documented here.

https://developer.apple.com/reference/foundation/nsnotification.name/1623061-uiapplicationwillterminate

This will help our app delegate be smaller and isolate our Core Data Manager from other parts of our app.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions