           x: fromView.frame.origin.x + (fromView.frame.size.width / 2),
           y: fromView.frame.origin.y
       ), from: fromView.superview)
-    case .down:
+    case .down, .auto:
       point = inView.convert(
         CGPoint(
           x: fromView.frame.origin.x + (fromView.frame.size.width / 2),

    switch self.popoverType {
    case .up:
      self.contentView.frame.origin.y = 0.0
    case .down:
      self.contentView.frame.origin.y = self.arrowSize.height
    }
    self.addSubview(self.contentView)

@objc public enum PopoverType: Int {
  case up
  case down
  case auto
}

open class Popover: UIView {
