Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import UIKit
import NotificationCenter
class TodayViewController: UIViewController, NCWidgetProviding {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func onButtonTap(_ sender: Any) {
self.extensionContext?.open(URL(string: "iOS13QuickActions://")!)
}
func widgetPerformUpdate(completionHandler: (@escaping (NCUpdateResult) -> Void)) {
completionHandler(NCUpdateResult.newData)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment