Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save katiesmillie/df1379b35cce032509315e043bb77746 to your computer and use it in GitHub Desktop.
Save katiesmillie/df1379b35cce032509315e043bb77746 to your computer and use it in GitHub Desktop.
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
UIDevice.current.setValue(UIInterfaceOrientation.portrait.rawValue, forKey: "orientation")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment