Settings: Exporting configs as zip should open document picker
Because: - Exporting UI should be consistent with importing UI - UIActivityVC takes a long time to open Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
c827a00307
commit
fa9a4921a8
|
@ -80,11 +80,9 @@ class SettingsTableViewController: UITableViewController {
|
||||||
ErrorPresenter.showErrorAlert(error: error, from: self)
|
ErrorPresenter.showErrorAlert(error: error, from: self)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let activityVC = UIActivityViewController(activityItems: [destinationURL], applicationActivities: nil)
|
|
||||||
// popoverPresentationController shall be non-nil on the iPad
|
let fileExportVC = UIDocumentPickerViewController(url: destinationURL, in: .exportToService)
|
||||||
activityVC.popoverPresentationController?.sourceView = sourceView
|
self?.present(fileExportVC, animated: true, completion: nil)
|
||||||
activityVC.popoverPresentationController?.sourceRect = sourceView.bounds
|
|
||||||
self?.present(activityVC, animated: true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue