Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
- if response.actionIdentifier == "View"{
- let vc = TestViewController()
- DispatchQueue.main.async {
- self.navigationVC?.popViewController(animated: false)
- self.window?.rootViewController?.present(vc,animated: true, completion: nil)
- }
- }
- //toliau handlini savo uzregistruotus actions
- completionHandler()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement