Skip to content

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
@tiendq tiendq force-pushed the fix/break-orientation-config branch from ba69260 to 3d07b37 Compare April 11, 2025 11:23
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