enebin / Aespa

From camera to album, in just 2 lines
https://enebin.github.io/Aespa/documentation/aespa/
MIT License
75 stars 16 forks source link

Init with front camera jumps from back camera #46

Open missphyrgames opened 2 weeks ago

missphyrgames commented 2 weeks ago

Hey @enebin! Thank you for creating this library to make it easier to use the camera.

I've noticed an issue when setting the camera to the front position initially in the session. When I launch the app, it starts off at the back camera and then quickly switches to the front camera which is not the behaviour I expected. I was able to reproduce this with the demo project.

Would you be able to provide a fix for this please? I'm not quite sure what would cause this. Thanks again!

missphyrgames commented 2 weeks ago

I tested this on an iPhone 14.

I've also tried to create my own preview with the exposed previewLayer and a UIViewRepresentable but get the same jump as well.