I'm currently using SwiftMessages 2.0.
In a chat view, I'm displaying messages notifications while the user is typing text.
When a message comes-in it is granted to be the new first responder which makes the keyboard disappear in consequence.
Do you have any workaround ideas ?
Thanks
Never mind, found a way to solve it through the View Controller presentation context.
Hi @CallMeSH I'm EXACTLY in the same configuration as your problem. Can you, please explain a little more how did you bypass this issue ?
Thanks !
For future readers, here is how to solve it:
var config = SwiftMessages.Config()
config.presentationContext = .ViewController(window.rootViewController)
let view = MessageView.viewFromNib(layout: MessageView.Layout.MessageView)
SwiftMessages.show(config: config, view: view)
Thanks dude ! Didn't understand you were referring to presentationContext for SwiftMessages 馃槄
Most helpful comment
For future readers, here is how to solve it: