Awalz / SwiftyCam

A Snapchat Inspired iOS Camera Framework written in Swift
BSD 2-Clause "Simplified" License
2.09k stars 326 forks source link

Wrong photo orientation when device has orientation lock enabled #124

Open igorkulman opened 7 years ago

igorkulman commented 7 years ago

I use shouldUseDeviceOrientation = true and everything works fine when the device does not have orientation lock enabled. But when I enable it, all the landscape photos are rotated to portrait.

igorkulman commented 7 years ago

Looks like https://github.com/Awalz/SwiftyCam/pull/109 should fix this, when will it get to master and into a new release?

I tried using the Swift4 branch with Carthage but it is not buildable.

Also could you please consider adding a flag that says if the preview should be rotated according to CoreMortion? In my app I "lock" the camera view controller to portrait and I guess the new code would rotate the preview when it should not.

KKKKaras commented 6 years ago

CoreMortion is good idea

AmmarBaali commented 6 years ago

Still the same problem today...