Hello, i have an AR app and i want to change from rear-facing camera (ARWorldTrackingConfiguration()) to front-facing camera (ARFaceTrackingConfiguration()) and the opposite. I am using ARkit+RealityKit. My problem here is that every time my UI refreshes (i press a button to change the configuration as a result to change rear or front facing camera), the memory never de-allocating, so with 5-6 times back and forth, i get 1,2 GB RAM without doing nothing at all and my app crashes.
Also, there are no memory leaks.
Any clue why there isnt memory de-allocation in ARkit or RealityKit?