 
   private var getStartedVC: GetStartedViewController!
   private var infoView: InfoViewController!
-  private var popover: UIPopoverController?
+  private var popover: UIViewController?
   private var textSizeController: UISlider!
   private var dropdownItems: [UIBarButtonItem]!
 

    let cancel = UIAlertAction(title: "Cancel", style: .default, handler: nil)
    alert.addAction(clear)
    alert.addAction(cancel)
    alert.popoverPresentationController?.barButtonItem = navigationItem.rightBarButtonItems?[4]
    present(alert, animated: true, completion: nil)
  }


    if UIDevice.current.userInterfaceIdiom == .phone {
      present(activityVC, animated: true, completion: nil)
    } else {
      activityVC.modalPresentationStyle = UIModalPresentationStyle.popover
      activityVC.popoverPresentationController?.barButtonItem = navigationItem.rightBarButtonItems?[12]
      self.present(activityVC, animated: true)

      popover = activityVC
    }
  }

