Lightbox icon indicating copy to clipboard operation
Lightbox copied to clipboard

InfoLabel squished in left corner when view loads then aligns correctly once view appears

Open Marcoc88 opened this issue 6 years ago • 14 comments

iOS 11.2.6. iPhone 8 and X.

When I call the code below it loads the view but the InfoLabel is squished on the bottom left of the screen and does not align correctly until about half a second after the view appears to the user.

 func presentImage(image: UIImage, info: String) {
    LightboxConfig.hideStatusBar = false
    LightboxConfig.PageIndicator.enabled = false

    let images =   [LightboxImage(
      image: image,
      text: info
    )]
    let lightboxController = LightboxController(images: images)

    lightboxController.dynamicBackground = true

    present(lightboxController, animated: true, completion: nil)
  }

Marcoc88 avatar Feb 28 '18 13:02 Marcoc88

Also noticing this as well, similar code - info label appears squished, and then lays out correctly after a brief moment

crafterm avatar Sep 19 '18 03:09 crafterm

@3lvis issue still exists. Any solution?

sergstav avatar Jun 12 '20 14:06 sergstav

@Marcoc88 did you find any solution for this?

sergstav avatar Jun 12 '20 16:06 sergstav

@sergstav I don't believe I found a solution.

Marcoc88 avatar Jun 12 '20 20:06 Marcoc88

Any help would be appreciated

3lvis avatar Jun 13 '20 05:06 3lvis

Does this project works for you on iOS 13? Because I can't seem to get it working.

3lvis avatar Jun 13 '20 05:06 3lvis

Yes, its working.

sergstav avatar Jun 15 '20 07:06 sergstav

13 is working great with carthage.

yspreen avatar Jun 16 '20 13:06 yspreen

Also working with Cocoapods.

sergstav avatar Jun 18 '20 13:06 sergstav

If you run the iOSDemo project and press the "Show me the Lightbox" button this is what it shows. For some reason, it's not showing the Lightbox.

Simulator Screen Shot - iPhone 11 Pro Max - 2020-06-18 at 19 11 51

3lvis avatar Jun 19 '20 00:06 3lvis

@3lvis : This workaround works: https://github.com/hyperoslo/Lightbox/issues/229#issuecomment-523589760

norbdev avatar Jun 22 '20 12:06 norbdev

@norbdev thank you! Got the demo working properly now. Now, looking into reproducing the original bug.

3lvis avatar Jun 22 '20 13:06 3lvis

I found the issue now. I'll make some time to look into it but if you have any clues it would be helpful :)

3lvis avatar Jun 22 '20 13:06 3lvis

Haven't had the opportunity to prioritize this, happy if somebody interested can have a look

3lvis avatar Oct 04 '20 08:10 3lvis