Switches to Core Data model objects

This commit is contained in:
Riley Testut
2019-05-20 21:24:53 +02:00
parent 65a8414727
commit c3a8abf8dc
13 changed files with 272 additions and 121 deletions

View File

@@ -13,9 +13,19 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
DatabaseManager.shared.start { (error) in
if let error = error
{
print("Failed to start DatabaseManager.", error)
}
else
{
print("Started DatabaseManager")
}
}
return true
}