         }
     }
 
-    func sharePostTapped() {
+    func sharePostTapped(sourceView: UIView) {
         if let user = user,
             shareLink = user.shareLink,
             shareURL = NSURL(string: shareLink)


        var rightBarButtonItems: [UIBarButtonItem] = []
        if user.hasSharingEnabled {
            rightBarButtonItems.append(UIBarButtonItem(image: .Share, target: self, action: #selector(ProfileViewController.sharePostTapped)))
        }
        rightBarButtonItems.append(UIBarButtonItem(image: .Dots, target: self, action: #selector(ProfileViewController.moreButtonTapped)))
        elloNavigationItem.rightBarButtonItems = rightBarButtonItems

            }
            else {
                activityVC.modalPresentationStyle = .Popover
                activityVC.popoverPresentationController?.sourceView = sourceView
                logPresentingAlert(readableClassName() ?? "ProfileViewController")
                presentViewController(activityVC, animated: true) { }
            }
