camerakit-ios
camerakit-ios copied to clipboard
Landscape photo taken with iOS orientation lock enabled is taken as portrait
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
(Please include the following information along with any other relevant environment details.)
CameraKit Version: 1.2.0
iOS Device: iPhone 6S
iOS Version: 12.1.4
Steps to Reproduce
(Write your steps here:)
- Enable orientation lock in iOS
- Run the sample app
- Rotate the device to lansdscape
- Take a photo
- Save the photo
- See the photo taken and saved as portrait (rotated 90 degrees)
Expected Behavior
Photo taken in lanscape should be saved as landscape even if orientation lock is enabled in iOS (same as the default camera app)
Actual Behavior
Photo taken in lanscape is save rotated 90 degrees when iOS orientation lock is enabled.
Reproducible Demo
Sample app in this repo.
Fix idea: use CoreMotion
to detect "real" device orientation instead of UIDeviceOrientation
Thanks for these detailed tickets @igorkulman - we will get a patch release out for this soon!
any update for this? or maybe a workaround on how to solve this at the moment?