Skip to content

Instantly share code, notes, and snippets.

@warren-gavin
Last active August 14, 2016 14:21
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 warren-gavin/a4bd5a25a313c81264c87a863ffcb50b to your computer and use it in GitHub Desktop.
Save warren-gavin/a4bd5a25a313c81264c87a863ffcb50b to your computer and use it in GitHub Desktop.
class ViewController: UIViewController {
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
NSNotificationCenter.defaultCenter().postNotificationName(OBAnimatingViewBehaviour.Action.animate, object: self)
}
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
NSNotificationCenter.defaultCenter().postNotificationName(OBAnimatingViewBehaviour.Action.stop, object: self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment