소스 검색

update fix color tabBar

kevin 3 년 전
부모
커밋
f7697de1aa
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      appbuilder-ios/AppBuilder/AppBuilder/AppDelegate.swift

+ 11 - 0
appbuilder-ios/AppBuilder/AppBuilder/AppDelegate.swift

@@ -138,6 +138,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
                 }
             }
         }
+        let tabBarAppearance: UITabBarAppearance = UITabBarAppearance()
+        tabBarAppearance.configureWithDefaultBackground()
+        if Bundle.main.displayName == "DigiNetS" {
+            tabBarAppearance.backgroundColor = .darkGray
+        }
+        if #available(iOS 13.0, *) {
+            UITabBar.appearance().standardAppearance = tabBarAppearance
+        }
+        if #available(iOS 15.0, *) {
+            UITabBar.appearance().scrollEdgeAppearance = tabBarAppearance
+        }
         return true
     }