I found a very strange error when I try to flip an ARSCNView vertically on an iPad, what I need to do suppose to be:
sceneView.transform = sceneView.transform.scaledBy(x: 1, y: -1)
which should flip the ARSCNView vertically. It rotates 90 degrees instead of flipping. Strangely the following gives the same result:
sceneView.transform = sceneView.transform.scaledBy(x: -1, y: 1)
Scale X and Y should not rotate the View.
Where this problem happens: Ipad pro 12.9 2019, iOS 14.0.1, in portrait mode
What else that I tried: Everything works on iPhone.
The following works but not what I need
sceneView.transform = sceneView.transform.rotated(by: .pi)
- on the same device landscape works in both directions. The error only occurs when portrait or portrait upsidedown.
Does anyone have any ideas on how I can get around?