marinofaggiana 5 年之前
父節點
當前提交
39b9658842
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      iOSClient/Main/NCDetailNavigationController.swift

+ 3 - 2
iOSClient/Main/NCDetailNavigationController.swift

@@ -28,7 +28,7 @@ class NCDetailNavigationController: UINavigationController {
     let appDelegate = UIApplication.shared.delegate as! AppDelegate
     
     var progressView: UIProgressView?
-    let progressHeight: CGFloat = 2
+    let progressHeight: CGFloat = 10
 
     override func viewDidLoad() {
         super.viewDidLoad()
@@ -83,7 +83,8 @@ class NCDetailNavigationController: UINavigationController {
     //MARK: - ProgressBar
 
     @objc func setProgressBar() {
-        progressView = UIProgressView.init(frame: CGRect(x: 0, y: navigationBar.frame.height-progressHeight, width: navigationBar.frame.width, height: progressHeight))
+        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)
         progressView!.tintColor = NCBrandColor.sharedInstance.textView
         progressView!.trackTintColor = .clear