mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
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 }
|
guard let image = image else { return }
|
||||||
let activityViewController = UIActivityViewController(activityItems: [url!, image], applicationActivities: nil)
|
let activityViewController = UIActivityViewController(activityItems: [url!, image], applicationActivities: nil)
|
||||||
activityViewController.popoverPresentationController?.sourceView = shareButton
|
activityViewController.popoverPresentationController?.sourceView = shareButton
|
||||||
|
activityViewController.popoverPresentationController?.sourceRect = shareButton.bounds
|
||||||
present(activityViewController, animated: true)
|
present(activityViewController, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user