From b65bd3c3c0248c97e20f6ebff10ffc811d173d62 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 19 Jan 2021 08:29:54 -0500 Subject: [PATCH] Revert "Issue is in if-let alarmVC" This reverts commit 647c60f489a700555f6e67b1cb331bacc28af3f6. --- ProjectClock/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectClock/AppDelegate.swift b/ProjectClock/AppDelegate.swift index 04feab5..88e244a 100644 --- a/ProjectClock/AppDelegate.swift +++ b/ProjectClock/AppDelegate.swift @@ -45,7 +45,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { } let storyboard = UIStoryboard(name: "Main", bundle: nil) - + // instantiate the view controller we want to show from storyboard // root view controller is tab bar controller // the selected tab is a navigation controller @@ -53,7 +53,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { if let alarmVC = storyboard.instantiateViewController(withIdentifier: "LiveAlarmViewController") as? LiveAlarmViewController, let tabBarController = rootViewController as? UITabBarController, let navController = tabBarController.selectedViewController as? UINavigationController { - print(2) + // we can modify variable of the new view controller using notification data // (eg: title of notification) //alarmVC.senderDisplayName = response.notification.request.content.title