Skip to content

Comments

Fix for iOS camera orientation issue#43

Merged
Redth merged 2 commits intoRedth:mainfrom
bhuvan94:fix_ios_camera_orientation
Oct 18, 2022
Merged

Fix for iOS camera orientation issue#43
Redth merged 2 commits intoRedth:mainfrom
bhuvan94:fix_ios_camera_orientation

Conversation

@bhuvan94
Copy link

@bhuvan94 bhuvan94 commented Sep 7, 2022

Fix for iOS camera orientation issue (#40)

@bhuvan94 bhuvan94 changed the title Fix ios camera orientation Fix for iOS camera orientation issue Sep 7, 2022
@Redth Redth merged commit aa7ca80 into Redth:main Oct 18, 2022
@bstadick
Copy link
Contributor

bstadick commented May 8, 2024

One issue I found with this fix is that it updates appropriately for the device orientation but doesn't account for the application orientation which could be different. E.g. The device is held in portrait when the scan starts but the application only supports landscape will lock the camera view in portrait thus being offset by 90 degrees.

It also doesn't re-apply the layout when the device orientation changes. E.g. Change from landscape left to landscape right keeps the camera view in landscape left, thus resulting in the camera being upside down.

I've created pull request #186 with help from a coworker to handle these two scenarios.

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.

3 participants