I'm following along with one of the older WWDC videos on ARKit found here: https://developer.apple.com/videos/play/wwdc2017/602/
In this video, they create an AR app that listens for a tap gesture and creates an image plane using a snapshot of the scene view.
Here's the relevant code from the video:
However, when I run the code on my device, the generated plane is always rotated 90 degrees clockwise with respect to my device's orientation. For example, when holding my device in portrait mode, the generated plane looks like this:
Similarly, if I hold my device in the landscape-right orientation, the "top" of the image plane will be pointing down.
Is there a reason the ARCamera transform always seems to be off by 90 degrees with respect to the device orientation?