title: Keep view portrait but let iOS Rotate with phone
body: <p>I'm looking for a way to rotate iOS UI, without rotating the game view.</p>
  <p>The game I'm working on supports multiple orientations, but the game view takes care of the rotation and all animation related to that orientation change and should be rendered as if it's portrait at all times.</p>
  <p>Currently I have the app locked to only support portrait and when the phone is rotated the game rotates. But the home bar and control center stay portrait, which is sort of ok, but I'd like the app to fully support landscape.</p>
  <p>As it i now, I listen to orientation notifications</p>
  <pre><code>func ListenToRotationUpdates() {
      UIDevice.current.beginGeneratingDeviceOrientationNotifications()
      NotificationCenter.default.addObserver(
          self,
          selector: #selector(deviceOrientationDidChange),
          name: UIDevice.orientationDidChangeNotification,
          object: nil
      )
  }
  </code></pre>
  <p>Which will set the orientation within the game</p>
  <pre><code>@objc func deviceOrientationDidChange() {
      let orientation = UIDevice.current.orientation
  
      if orientation == .unknown || orientation == .faceUp || orientation == .faceDown {
          return
      }
  
      self.gameScene.Set(orientation: orientation)
      setNeedsStatusBarAppearanceUpdate()
  }
  </code></pre>
  <p>is there a way to keep a view portrait while the app rotates the OS normally?</p>