diff --git a/Tusker/Screens/Large Image/LargeImageViewController.swift b/Tusker/Screens/Large Image/LargeImageViewController.swift index d16567e5..cf0f28be 100644 --- a/Tusker/Screens/Large Image/LargeImageViewController.swift +++ b/Tusker/Screens/Large Image/LargeImageViewController.swift @@ -227,6 +227,9 @@ class LargeImageViewController: UIViewController, UIScrollViewDelegate, LargeIma @IBAction func sharePressed(_ sender: Any) { guard let image = image else { return } let activityVC = UIActivityViewController(activityItems: [image], applicationActivities: nil) + if let presentationController = activityVC.presentationController as? UIPopoverPresentationController { + presentationController.sourceView = shareButton + } present(activityVC, animated: true) }