-
Notifications
You must be signed in to change notification settings - Fork 212
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
Black Screen problem when using with Swift #35
Comments
@qasimsqm Seems the window is getting hidden when you call
right after calling |
Same here w/ Objective-C. I did not have time to properly bisect yet, but a known-good version is ref ccb3cb4. |
Seems that the same problem here #34 |
Please, attach some demo project with the reproducible issue. If I have time, I will take a look. |
The problem seems to be in LGAlertViewHelper.h, the app window is not necessarily the first window. In my case there are "hosted" windows which are created by AVPlayerViewController before the app window. So you can try to replace :
with :
|
I don't use a storyboard and have this block in
That's how I can reproduce the issue and this works for me as a workaround: #35 (comment) |
Following warning appears on console while running
<UIVisualEffectView 0x7f8883c2bc70> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.
Once I show LGAlertView it turns screen into black screen. Following code is used
```
@IBAction func onClickEditProfile(sender: Any) {
let lgaView: LGAlertView = LGAlertView.init(title: "", message: "What would you like to edit?", style: LGAlertViewStyle.actionSheet, buttonTitles: ["Edit Profile", "Edit Schedule"], cancelButtonTitle: "Cancel", destructiveButtonTitle: nil, actionHandler: { (lgView: LGAlertView, index:UInt, title: String) in
if(index == 0){
self.navigationController?.pushViewController(EditProfileVC.editProfileVCLoad(), animated: true)
}else{
self.navigationController?.pushViewController(EditProfileVC.editProfileVCLoad(), animated: true)
}
The text was updated successfully, but these errors were encountered: