marinofaggiana 5 years ago
parent
commit
6ae9739f52
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/Main/NCDetailNavigationController.swift

+ 4 - 0
iOSClient/Main/NCDetailNavigationController.swift

@@ -102,6 +102,10 @@ class NCDetailNavigationController: UINavigationController {
     //MARK: - ProgressBar
 
     @objc func setProgressBar() {
+        if progressView != nil {
+            progressView?.removeFromSuperview()
+        }
+        
         progressView = UIProgressView.init(progressViewStyle: .bar)
         progressView!.frame = CGRect(x: 0, y: navigationBar.frame.height-progressHeight, width: navigationBar.frame.width, height: progressHeight)
         progressView!.setProgress(0, animated: false)