ARView rotation animation changes when coming back to it from a navigationLink

I have an app that uses RealityKit and ARKit, which includes some capturing features (to capture and image with added Entities). I have a navigationLink that allows the user to see the gallery of the images he has taken.

When launching the App, the rotation animation of the ARView happens smoothly, the navigationBar transitions from one orientation to another with the ARView keeping it's orientation.

However, when I go to the galeryView to see the images and go back to the root view where the ARView is, the rotation animation of the ARView changed:

When transitioning from one orientation to another, the ARView is flipped by 90° before transitioning to the new orientation.

The issue is shown in this gif (https://i.stack.imgur.com/IOvCx.gif)

Any idea why this happens and how I could resolve it without locking the App's orientation changes?

Thanks!

ARView rotation animation changes when coming back to it from a navigationLink
 
 
Q