Procházet zdrojové kódy

clear code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana před 2 roky
rodič
revize
bacd286938
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

+ 2 - 1
iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

@@ -475,7 +475,7 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
     func searchPdfSelection(_ pdfSelection: PDFSelection) {
 
         removeAllAnnotations()
-        
+
         pdfSelection.pages.forEach { page in
             let highlight = PDFAnnotation(bounds: pdfSelection.bounds(for: page), forType: .highlight, withProperties: nil)
             highlight.endLineStyle = .square
@@ -508,6 +508,7 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
     }
 
     func removeAllAnnotations() {
+        
         guard let document = pdfDocument else { return }
 
         for i in 0..<document.pageCount {