-
Notifications
You must be signed in to change notification settings - Fork 332
Using UIWindow for layout size #150
Copy link
Copy link
Closed
Description
LightboxController:261 attempts to get the size for the scroll view from UIApplication.shared.delegate?.window??.bounds.size, which assumes that you have that implemented.
Maybe something like UIApplication.shared.keyWindow could be used instead? I'm not sure if implementing UIApplicationDelegate.window is a common enough convention that this issue doesn't matter, but it's definitely something I ran into! :)
Edit:
I can open a PR that uses UIApplication.shared.keyWindow if I get the go ahead. Perhaps I can even have it use keyWindow just as a ?? fallback.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels