Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 16, 2020 10:00
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 stevencurtis/f9348d8adfcf5795c42086b5ebe4e3b8 to your computer and use it in GitHub Desktop.
Save stevencurtis/f9348d8adfcf5795c42086b5ebe4e3b8 to your computer and use it in GitHub Desktop.
fadeout
override func viewWillDisappear(_ animated: Bool) {
UIView.animate(withDuration: 0.20, delay: 0, options: [], animations: {
self.tree0.alpha = 0.0
self.city2.alpha = 0.0
self.city.alpha = 0.0
self.manImage.alpha = 0.0
}, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment