Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init with front camera jumps from back camera #46

Open
missphyrgames opened this issue Jun 16, 2024 · 1 comment
Open

Init with front camera jumps from back camera #46

missphyrgames opened this issue Jun 16, 2024 · 1 comment

Comments

@missphyrgames
Copy link

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
Copy link
Author

missphyrgames commented Jun 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant