marinofaggiana 5 년 전
부모
커밋
2a905fa192
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      iOSClient/Main/NCDetailViewController.swift

+ 7 - 0
iOSClient/Main/NCDetailViewController.swift

@@ -357,6 +357,13 @@ class NCDetailViewController: UIViewController {
                     }
                     
                     viewerPDF.setupPdfView(filePath: URL(fileURLWithPath: filePath), view: backgroundView)
+                    
+                } else {
+                    
+                    let frame = CGRect(x: 0, y: 0, width: self.backgroundView.frame.width, height: self.backgroundView.frame.height)
+                    let viewerDocumentWeb = NCViewerDocumentWeb.init(frame: frame, configuration: WKWebViewConfiguration())
+                    
+                    viewerDocumentWeb.viewDocumentWebAt(metadata, view: backgroundView)
                 }
                 
                 return