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

SM Not showing up after UIAlertController #49

Closed
iranjith4 opened this issue Dec 25, 2016 · 1 comment
Closed

SM Not showing up after UIAlertController #49

iranjith4 opened this issue Dec 25, 2016 · 1 comment

Comments

@iranjith4
Copy link

I'm using al alert controller in my application along with SwiftMessages. SM is working fine, untill I've called an AlertController. Once the Alert Controller goes, then the SM is not showing up throughout the app. Guess the issue #30 still exists.

 var config = SwiftMessages.Config()
config.presentationContext = .Window(windowLevel: UIWindowLevelStatusBar)
let view = MessageView.viewFromNib(layout: .CardView)
view.configureTheme(.Warning)
view.configureDropShadow()
let iconText = ["🤔", "😳", "🙄", "😶"].sm_random()!
view.configureContent(title: "Oops!", body: message, iconText: iconText)
view.button?.hidden = true
        
SwiftMessages.show(view: view)

is the code I use to show SM. I have tried using UIWindowLevelAlert and UIWindowLevelNormal.

@iranjith4
Copy link
Author

But I just tried on a sample application with the same code. Guess some other thing is creating an problem. I'm using a HUD, which earlier created the same problem. I guess thats the one.

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

No branches or pull requests

1 participant