marinofaggiana 4 years ago
parent
commit
c1e6e71168

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -1107,8 +1107,8 @@
 				F7C7B488245EBA4100D93E60 /* NCViewerQuickLook.swift */,
 				F76D3CEF2428B3DD005DFA87 /* NCViewerPDF */,
 				F71CEB0D253A0B1A00832FFE /* NCViewerVideo */,
-				F79018B1240962C7007C9B6D /* NCViewerImage */,
 				F73D11FF253C5F5400DF9BEC /* NCViewerNextcloudText */,
+				F79018B1240962C7007C9B6D /* NCViewerImage */,
 				F790110D21415BF600D7B136 /* NCViewerRichdocument.swift */,
 			);
 			path = Viewer;

+ 2 - 3
iOSClient/Viewer/NCViewerNextcloudText/NCViewerNextcloudText.swift

@@ -82,8 +82,8 @@ class NCViewerNextcloudText: UIViewController, WKNavigationDelegate, WKScriptMes
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
 
-        navigationItem.rightBarButtonItem = nil
-        navigationItem.leftBarButtonItem = nil
+        let buttonMore = UIBarButtonItem.init(image: CCGraphics.changeThemingColorImage(UIImage(named: "more"), width: 50, height: 50, color: NCBrandColor.sharedInstance.textView), style: .plain, target: self, action: #selector(self.openMenuMore))
+        navigationItem.rightBarButtonItem = buttonMore
         
         navigationController?.navigationBar.prefersLargeTitles = true
         navigationItem.title = metadata.fileNameView
@@ -177,7 +177,6 @@ class NCViewerNextcloudText: UIViewController, WKNavigationDelegate, WKScriptMes
         }
     }
         
-    
     //MARK: -
 
     public func webView(_ webView: WKWebView, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {