I'm creating a simple today widget which contains one button, this button should - when pressed - open a specific View Controller in my corresponding application.
The only solution I've thought of was to create a URL type which can only open the initial view controller (at least to my knowledge).
Below is the code I'm currently using inside the UIButton action:
var url = NSURL(string: "_my_url_://")
extensionContext?.openURL(url!, completionHandler: nil)