-
-
Save iosdevie/00474b9da42727492b681a30a7cdac75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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