Portrait only on iPad with iOS 12.0 does not work

I'd like to disable the automatic screen rotation on an iPad app. All i do in my ViewController's is:

    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        return [.portrait, .portraitUpsideDown]
    }


This works with the latest iOS 11.x release but not on iOS 12 beta. Does anyone have this issue too? Maybe there is already a radar for that.

Ok it turns out that Xcode 10 appends


  <key>UISupportedInterfaceOrientations~ipad</key>
  <array>
  <string>UIInterfaceOrientationPortrait</string>
  <string>UIInterfaceOrientationPortraitUpsideDown</string>
  <string>UIInterfaceOrientationLandscapeLeft</string>
  <string>UIInterfaceOrientationLandscapeRight</string>
  </array>


to the info.plist... is that new in Xcode 10?

>Maybe there is already a radar for that.


File one and see what comes back...


I don't see anything about it in any of the release notes.

Portrait only on iPad with iOS 12.0 does not work
 
 
Q