hyperoslo / hyperoslo/Lightbox

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

Open
#183 14 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Swift
Stars
1.7k
Forks
332
PR merge metrics
No merged PRs in 30d

Description

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)
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.