Closed sudeep23 closed 7 years ago
I'm seeing the same thing. One additional detail: it does popup if an input field on the same view is the first responder (and hence the keyboard is showing).
Sorry for replying late. Example works, but how does it work?
yes. same. will you guys fix soon? if not, I gona need to find another library since our app launch is very near to support ios 11. Or is there any temp workaround?
I found workaround. I just show like this. I need to specify inView.
let window = UIApplication.shared.keyWindow!
self.popover.show(tableView, fromView: fromView, inView: window)
Any update?
Replace this method open func show(_ contentView: UIView, fromView: UIView) { guard let rootView = UIApplication.shared.windows.last ?? UIApplication.shared.keyWindow else { return } self.show(contentView, fromView: fromView, inView: rootView) }
with below method open func show(_ contentView: UIView, fromView: UIView) { guard let rootView = UIApplication.shared.keyWindow ?? UIApplication.shared.windows.last else { return } self.show(contentView, fromView: fromView, inView: rootView) }
That method works fine. open func show(_ contentView: UIView, fromView: UIView) { guard let rootView = UIApplication.shared.keyWindow ?? UIApplication.shared.windows.last else { return } self.show(contentView, fromView: fromView, inView: rootView) }
imho there should probably be an error log, fatalError, exception raised, or assert(false) on the guarded return
for visibility
Update your cocoa pod file. @paulshapiro
Fixed in #80 & tested on iOS 11.1 beta 5; this issue can be closed @corin8823
thanks 🤓 @vrwim-bazookas
Popover works till iOS 10 but it doesn't pop up at all in iOS 11.