Skip to content

Instantly share code, notes, and snippets.

@bobleesj
Created December 17, 2016 12:48
Show Gist options
  • Save bobleesj/a9950635b363902648bb581f444d7086 to your computer and use it in GitHub Desktop.
Save bobleesj/a9950635b363902648bb581f444d7086 to your computer and use it in GitHub Desktop.
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(true)
NotificationCenter.default.removeObserver(self)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment