How can I open my application from the Today widget using Swift? I just want to click Widget, and I would like to open my application. I got a button right now in my opinion, the button is clear. But this does not work for me :( I need help :)
@IBAction func launchApp(sender: AnyObject) { var url: NSURL = NSURL.URLWithString("AffordItLauncher://") self.extensionContext?.openURL(url, completionHandler: nil) }
source share