Set bounds on share popover

This commit is contained in:
Maurice Parker 2019-10-12 16:54:24 -05:00
parent 60fb58ecaa
commit bebf69ef74
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class ImageViewController: UIViewController {
guard let image = image else { return }
let activityViewController = UIActivityViewController(activityItems: [url!, image], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = shareButton
activityViewController.popoverPresentationController?.sourceRect = shareButton.bounds
present(activityViewController, animated: true)
}