hyperoslo / hyperoslo/Lightbox
InfoLabel squished in left corner when view loads then aligns correctly once view appears
- 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
Assessment
This issue has not been assessed yet.