Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DontRotateSwift

Example project for disabling rotation on certain ViewControllers in custom UINavigationController

Linked to this SO Question

dontrotategif

Key parts:

  • Custom UINavigationController class assigned in Storyboard
  • Check if this ViewController is the one you want to disable roration on
  if topViewController!.isKindOfClass(ViewController) {
  // If true return false to disable it
    return false
  }

About

Example project for disabling rotation on certain ViewControllers in custom UINavigationController

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages