forked from shadowfacts/Tusker
parent
aa0629d202
commit
cccde29e6c
|
@ -142,6 +142,7 @@ class IssueReporterViewController: UIViewController {
|
||||||
let url = dir.appendingPathComponent(reportFilename)
|
let url = dir.appendingPathComponent(reportFilename)
|
||||||
try! reportText.data(using: .utf8)!.write(to: url)
|
try! reportText.data(using: .utf8)!.write(to: url)
|
||||||
let activityController = UIActivityViewController(activityItems: [url], applicationActivities: nil)
|
let activityController = UIActivityViewController(activityItems: [url], applicationActivities: nil)
|
||||||
|
activityController.popoverPresentationController?.sourceView = sendReportButton
|
||||||
present(activityController, animated: true)
|
present(activityController, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue