Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Marcoc88 opened this issue Feb 28, 2018 · 14 comments

Comments

@Marcoc88
Copy link

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)
  }
@crafterm
Copy link

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

@3lvis 3lvis closed this as completed Jun 7, 2020
@sergstav
Copy link

@3lvis issue still exists. Any solution?

@sergstav
Copy link

@Marcoc88 did you find any solution for this?

@Marcoc88
Copy link
Author

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

@3lvis 3lvis reopened this Jun 13, 2020
@3lvis
Copy link
Collaborator

3lvis commented Jun 13, 2020

Any help would be appreciated

@3lvis
Copy link
Collaborator

3lvis commented Jun 13, 2020

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

@sergstav
Copy link

Yes, its working.

@yspreen
Copy link
Contributor

yspreen commented Jun 16, 2020

13 is working great with carthage.

@sergstav
Copy link

Also working with Cocoapods.

@3lvis
Copy link
Collaborator

3lvis commented Jun 19, 2020

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

@norbdev
Copy link

norbdev commented Jun 22, 2020

@3lvis : This workaround works:
#229 (comment)

@3lvis
Copy link
Collaborator

3lvis commented Jun 22, 2020

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

@3lvis
Copy link
Collaborator

3lvis commented Jun 22, 2020

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
Copy link
Collaborator

3lvis commented Oct 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants