Răsfoiți Sursa

add new hud

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 ani în urmă
părinte
comite
975dbefad2
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      Share/NCShareExtension.swift

+ 3 - 1
Share/NCShareExtension.swift

@@ -126,7 +126,8 @@ class NCShareExtension: UIViewController {
             NCCommunicationCommon.shared.writeLog("Start session with level \(levelLog) " + versionNextcloudiOS)
         }
 
-        hud.indicatorView = JGProgressHUDPieIndicatorView()
+        hud.indicatorView = JGProgressHUDRingIndicatorView()
+        (hud.indicatorView as! JGProgressHUDRingIndicatorView).ringWidth = 2
         
         NotificationCenter.default.addObserver(self, selector: #selector(triggerProgressTask(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
     }
@@ -382,6 +383,7 @@ extension NCShareExtension {
             }
         } else {
             hud.indicatorView = JGProgressHUDSuccessIndicatorView()
+            hud.textLabel.text = NSLocalizedString("_success_", comment: "")
             DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
                 self.extensionContext?.completeRequest(returningItems: self.extensionContext?.inputItems, completionHandler: nil)
             }