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

fix: camera breaks app orientation configuration (#89) #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tiendq
Copy link

@tiendq tiendq commented Feb 15, 2025

Issue: camera changes app orientation configuration e.g. your app allows only portrait orientation but after open camera and go back to your app then app can be rotated.

Bug in this line, it reset app orientation when camera disappeared (.all) instead of using original orientation from app configuration.

config.appDelegate?.orientationLock = orientation ?? .all

Fixed by restoring to original app orientation instead of .all value.

@tiendq tiendq requested a review from FulcrumOne as a code owner February 15, 2025 04:24
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

Successfully merging this pull request may close these issues.

1 participant