SwiftUI's SpriteView won't rotate on an iPhone

Please refer to this SO question with more info / images.

But basically the following code will not rotate on a real device (iPhone 11, iOS 14b3):

Code Block
import SwiftUI
import SpriteKit
@main
struct TestApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
struct ContentView: View {
var body: some View {
GeometryReader { geometry in
// SpriteView test (does NOT rotate)
SpriteView(scene: createSKScene(with: geometry.size))
.frame(width: geometry.size.width / 2, height: geometry.size.height / 2)
}
}
func createSKScene(with size: CGSize) -> SKScene {
let scene = SKScene()
scene.backgroundColor = UIColor.red
return scene
}
}


It rotates just fine on simulators though.
Ah, it also rotates on a real iPad Pro 11" (I just checked).

So maybe the issue has to do with iPhones?

Xcode: 12.0 beta 3
iOS: 14 beta 3

Should I fill a but to it or am I missing something?
TRY adding a "scene.size = size" to line 25. SpriteKit doesn't know that the size of the frame changed.

Note: Every time you rotate, you're going to create a new Scene and loose everything in the scene (new Game).
SwiftUI's SpriteView won't rotate on an iPhone
 
 
Q