   }
 
   open func showAsDialog(_ contentView: UIView) {
-    self.showAsDialog(contentView, inView: UIApplication.shared.keyWindow!)
+    self.showAsDialog(contentView, inView: UIApplication.shared.windows.first!)
   }
 
   open func showAsDialog(_ contentView: UIView, inView: UIView) {

  }

  open func show(_ contentView: UIView, point: CGPoint) {
    self.show(contentView, point: point, inView: UIApplication.shared.keyWindow!)
  }

  open func show(_ contentView: UIView, point: CGPoint, inView: UIView) {

  }

  open func show(_ contentView: UIView, fromView: UIView) {
    self.show(contentView, fromView: fromView, inView: UIApplication.shared.windows.first!)
  }

  open func show(_ contentView: UIView, fromView: UIView, inView: UIView) {
