Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
- if let tabVC = self.window?.rootViewController as? UITabBarController {
- if shortcutItem.type == "Hausaufgaben" {
- tabVC.selectedIndex = 1
- tabVC.performSegue(withIdentifier: "gotoHausaufgaben", sender: nil)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement