mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Fixes #1544 - Remove media upload dialog share button
This commit is contained in:
committed by
Stefan Ceriu
parent
d1573ae40d
commit
6e5ae61bc0
+9
-1
@@ -59,7 +59,7 @@ private struct PreviewView: UIViewControllerRepresentable {
|
||||
let title: String?
|
||||
|
||||
func makeUIViewController(context: Context) -> UIViewController {
|
||||
let previewController = QLPreviewController()
|
||||
let previewController = PreviewViewController()
|
||||
previewController.dataSource = context.coordinator
|
||||
previewController.delegate = context.coordinator
|
||||
|
||||
@@ -123,3 +123,11 @@ struct MediaUploadPreviewScreen_Previews: PreviewProvider {
|
||||
MediaUploadPreviewScreen(context: viewModel.context)
|
||||
}
|
||||
}
|
||||
|
||||
private class PreviewViewController: QLPreviewController {
|
||||
override func viewWillLayoutSubviews() {
|
||||
super.viewWillLayoutSubviews()
|
||||
|
||||
navigationItem.rightBarButtonItem = nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user