Skip to content

Instantly share code, notes, and snippets.

@ITechRoof
Created May 21, 2018 16:07
Show Gist options
  • Save ITechRoof/d251518d3ab5511ca04723e7740d3425 to your computer and use it in GitHub Desktop.
Save ITechRoof/d251518d3ab5511ca04723e7740d3425 to your computer and use it in GitHub Desktop.
if let suiteDefault = UserDefaults.init(suiteName: "group.itr.todayWidget") {
if let dest = suiteDefault.value(forKey: "Destination") as? String {
if dest != destLabel.text {
destLabel.text = dest
completionHandler(NCUpdateResult.newData)
}
}
}
completionHandler(NCUpdateResult.noData)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment