I have a Today Widget for my app that when tapped launches the containing app. The problem is that it seems to be 'over-sensitive'. Sometimes when I am just scrolling, the widget recognises this as a tap and launches the app.
Here is my code:
@IBAction func launchApp(sender: AnyObject) {
var url: NSURL = NSURL.URLWithString("AffordItLauncher://")
self.extensionContext?.openURL(url, completionHandler: nil)
}
There is basically a button over the top of the entire widget.
How can I fix this?