Set bounds on share popover
This commit is contained in:
parent
60fb58ecaa
commit
bebf69ef74
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue