hyperoslo / Lightbox

:milky_way: A convenient and easy to use image viewer for your iOS app
https://www.hyper.no
Other
1.64k stars 329 forks source link

Screen is half-black after dismissal #102

Closed rmnblm closed 7 years ago

rmnblm commented 7 years ago

Hi there,

I'm facing a weird issue after you do the following steps:

  1. Tap on an image while your phone is in portrait mode
  2. Turn your phone to landscape
  3. Zoom into the picture
  4. Zoom out
  5. Close the image by swiping or pressing the close button

My code looks like this:

let lightboxController = LightboxController(images: [LightboxImage(image: image)])
LightboxConfig.PageIndicator.enabled = false
LightboxConfig.hideStatusBar = true
present(lightboxController, animated: true, completion: nil)

What happens is this:

unadjustednonraw_thumb_2f6d

To resolve the issue on the iPhone, you have to close the app in the Task Manager and open the app again.

onmyway133 commented 7 years ago

@rmnblm can confirm this is the problem. Your PR fixed this 🚀