Quellcode durchsuchen

update fix color tabBar

kevin vor 3 Jahren
Ursprung
Commit
f7697de1aa
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  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
         return true
     }
     }