func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem,
completionHandler: @escaping (Bool) -> Void) {
if shortcutItem.type == "com.xyz.test.tests.firstAction" {
if let url = URL(string: "https://www.google.com/") {
DispatchQueue.main.async {
UIApplication.shared.openURL(url)
}
print("\(shortcutItem) was tapped")
}
Here is the code i'm trying to execute. Is there a way to dismiss the application once the action is executed? If not i'm guessing it's required for context.
try
exit(0)
, but you can't publish itApple Review: