   }
 
   open func show(_ contentView: UIView, fromView: UIView) {
-    guard let rootView = UIApplication.shared.windows.last ?? UIApplication.shared.keyWindow else {
+    guard let rootView = UIApplication.shared.keyWindow else {
         return
     }
     self.show(contentView, fromView: fromView, inView: rootView)

    let point: CGPoint
    switch self.popoverType {
    case .up:
        point = inView.convert(CGPoint(x: fromView.frame.origin.x + (fromView.frame.size.width / 2), y: fromView.frame.origin.y), from: fromView.superview)
    case .down:
        point = inView.convert(CGPoint(x: fromView.frame.origin.x + (fromView.frame.size.width / 2), y: fromView.frame.origin.y + fromView.frame.size.height), from: fromView.superview)
    }

    if self.highlightFromView {

  }

  open func show(_ contentView: UIView, point: CGPoint) {
    guard let rootView = UIApplication.shared.keyWindow else {
        return
    }
    self.show(contentView, point: point, inView: rootView)
