You need to check:
- in info.plist, that all 4 orientations are supported
- in the UIViewController, add
override open var supportedInterfaceOrientations : UIInterfaceOrientationMask {
return .all
}
If you have NavigationController or TabBarController, need to define those extensions as well :
extension UINavigationController {
override open var supportedInterfaceOrientations : UIInterfaceOrientationMask {
return .all
}
}
extension UITabBarController {
override open var supportedInterfaceOrientations : UIInterfaceOrientationMask {
return .all
}
}
Could you show the code of your AVPlayerController ?
Maybe you have to include this supportedInterfaceOrientations here as well.