Просмотр исходного кода

ScannerViewController : color navigationBar

Marino Faggiana 6 лет назад
Родитель
Сommit
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() {