ソースを参照

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
     }