From 25e5fa563c045763edd4bc2aff1a7c6614228c5a Mon Sep 17 00:00:00 2001 From: James Magahern Date: Tue, 25 May 2021 15:40:58 -0700 Subject: [PATCH] Adds cancel button to preferred email recipient sheet --- App/Browser View/BrowserViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/App/Browser View/BrowserViewController.swift b/App/Browser View/BrowserViewController.swift index 3a9f039..6f08721 100644 --- a/App/Browser View/BrowserViewController.swift +++ b/App/Browser View/BrowserViewController.swift @@ -344,6 +344,10 @@ class BrowserViewController: UIViewController })) } + actionSheet.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { _ in + actionSheet.dismiss(animated: true, completion: nil) + })) + present(actionSheet, animated: true, completion: nil) }