Skip to content

Instantly share code, notes, and snippets.

@totiz
Last active September 12, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save totiz/70c9282a309abff09b0884efa93e7d34 to your computer and use it in GitHub Desktop.
Save totiz/70c9282a309abff09b0884efa93e7d34 to your computer and use it in GitHub Desktop.
AppController
class AppController {
static let NotifcationIdentifier = Notification.Name("Notify when something change")
func notify(message: String) {
NotificationCenter.default.post(name: AppController.NotifcationIdentifier, object: "User Did Open App")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment