Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Share
diff options
context:
space:
mode:
authormarinofaggiana <ios@nextcloud.com>2022-01-31 13:21:38 +0300
committermarinofaggiana <ios@nextcloud.com>2022-01-31 13:21:38 +0300
commit975dbefad2d9f42befdcb598d1104041f9a5bc8f (patch)
tree5e28d10945d363da923379d3738aef49943560a2 /Share
parent7bb6b69be9329149998da5db3a1040e74dc02b64 (diff)
add new hud
Signed-off-by: marinofaggiana <ios@nextcloud.com>
Diffstat (limited to 'Share')
-rw-r--r--Share/NCShareExtension.swift4
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)
}