 
         alert.add(action: AlertAction.cancel())
 
+        alert.popoverPresentationController?.barButtonItem = sender
+
         present(alert, animated: true)
     }
 


    // MARK: Private API

    @objc func onMore() {
        let alert = UIAlertController.configured(preferredStyle: .actionSheet)

        alert.add(action: UIAlertAction(

                image: UIImage(named: "bullets-hollow"),
                style: .plain,
                target: self,
                action: #selector(NotificationsViewController.onMore(sender:))
            )
            item.accessibilityLabel = NSLocalizedString("More options", comment: "")
            navigationItem.leftBarButtonItem = item
