diff options
author | marinofaggiana <ios@nextcloud.com> | 2022-01-31 13:21:38 +0300 |
---|---|---|
committer | marinofaggiana <ios@nextcloud.com> | 2022-01-31 13:21:38 +0300 |
commit | 975dbefad2d9f42befdcb598d1104041f9a5bc8f (patch) | |
tree | 5e28d10945d363da923379d3738aef49943560a2 /Share | |
parent | 7bb6b69be9329149998da5db3a1040e74dc02b64 (diff) |
add new hud
Signed-off-by: marinofaggiana <ios@nextcloud.com>
Diffstat (limited to 'Share')
-rw-r--r-- | Share/NCShareExtension.swift | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Share/NCShareExtension.swift b/Share/NCShareExtension.swift index c6b144814..795de5d96 100644 --- a/Share/NCShareExtension.swift +++ b/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) } |