thiagoperes / IDMPhotoBrowser

Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more
MIT License
2.71k stars 641 forks source link

Use actual interface orientation instead of the device one #226

Closed kjen93 closed 7 years ago

kjen93 commented 7 years ago

Use actual interface orientation instead of the device one to fix misplaced progress view when orientations do not match

Progress view is misplaced when the device is in landscape orientation, but application is portrait-only.

jackie-li commented 7 years ago

Progress view is still misplaced on devices that run on iOS 8+ Since iOS 8, [UIScreen mainScreen].bounds is orientation-dependent, this solution is incorrect when devices run on iOS 8+. Below screenshot is captured from iPad simulator iOS 10.2 with IDMPhotoBrowser 1.11.1: loading