marinofaggiana 4 жил өмнө
parent
commit
3ad075426b

+ 2 - 3
iOSClient/Main/NCDetailViewController.swift

@@ -41,7 +41,6 @@ class NCDetailViewController: UIViewController {
     @objc var viewerImageViewController: NCViewerImageViewController?
     @objc var metadatas = [tableMetadata]()
     
-    private let progressHeight: CGFloat = 1.5
     private var maxProgress: Float = 0
     private var videoLayer: AVPlayerLayer?
     private var viewerImageViewControllerLongPressInProgress = false
@@ -117,7 +116,7 @@ class NCDetailViewController: UIViewController {
 
         guard let navigationController = splitViewController?.viewControllers.last as? UINavigationController else { return }
                         
-        appDelegate.progressViewDetail.frame = CGRect(x: 0, y: navigationController.navigationBar.frame.height - (progressHeight*2), width: navigationController.navigationBar.frame.width, height: progressHeight)
+        appDelegate.progressViewDetail.frame = CGRect(x: 0, y: navigationController.navigationBar.frame.height - 2, width: navigationController.navigationBar.frame.width, height: 2)
         progress(0)
         
         if NCBrandColor.sharedInstance.brand.isLight() {
@@ -127,7 +126,7 @@ class NCDetailViewController: UIViewController {
         }
         
         appDelegate.progressViewDetail.trackTintColor = .clear
-        appDelegate.progressViewDetail.transform = CGAffineTransform(scaleX: 1, y: progressHeight)
+        appDelegate.progressViewDetail.transform = CGAffineTransform(scaleX: 1, y: 1)
         
         navigationController.navigationBar.addSubview(appDelegate.progressViewDetail)
     }