Browse Source

make sure the HUD progress animation in case of success always finishes with a smooth animation to 100%

cyberta 5 years ago
parent
commit
9bcbe5f293
1 changed files with 2 additions and 0 deletions
  1. 2 0
      deltachat-ios/Handler/HudHandler.swift

+ 2 - 0
deltachat-ios/Handler/HudHandler.swift

@@ -47,6 +47,8 @@ class HudHandler {
         let delay = 1.0
 
         if let hud = self.backupHud {
+            hud.setProgress(1.0, animated: true)
+            hud.detailTextLabel.text = "100%"
             DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500)) {
                 UIView.animate(
                     withDuration: 0.1, animations: {