Преглед изворни кода

ScannerViewController : color navigationBar

Marino Faggiana пре 6 година
родитељ
комит
444b4183b6
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      iOSClient/Scan/WeScan/Scan/ScannerViewController.swift

+ 3 - 0
iOSClient/Scan/WeScan/Scan/ScannerViewController.swift

@@ -60,6 +60,9 @@ final class ScannerViewController: UIViewController {
         quadView.removeQuadrilateral()
         captureSessionManager?.start()
         UIApplication.shared.isIdleTimerDisabled = true
+        
+        self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor: NCBrandColor.sharedInstance.brandText]
+        self.navigationController?.navigationBar.barTintColor = NCBrandColor.sharedInstance.brand
     }
     
     override func viewDidLayoutSubviews() {