diff --git a/iOS/Extensions/UITabBar+LED.swift b/iOS/Extensions/UITabBar+LED.swift index e49d0cb..201c604 100644 --- a/iOS/Extensions/UITabBar+LED.swift +++ b/iOS/Extensions/UITabBar+LED.swift @@ -11,4 +11,4 @@ extension UITabBar { speed: 5.0 ) } -} \ No newline at end of file +} diff --git a/iOS/Views/TabbarView.swift b/iOS/Views/TabbarView.swift index 06ef739..7c5701d 100644 --- a/iOS/Views/TabbarView.swift +++ b/iOS/Views/TabbarView.swift @@ -248,7 +248,7 @@ struct TabbarView: View { // Set up LED effects after a delay to ensure tab bar is ready DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) { - // Apply flowing LED effect to all tab bars - safely + // Apply LED effect to tab bar for visual enhancement if #available(iOS 15.0, *) { // Use UIWindowScene.windows on iOS 15+ UIApplication.shared.connectedScenes @@ -256,7 +256,7 @@ struct TabbarView: View { .flatMap { $0.windows } .compactMap { $0.rootViewController as? UITabBarController } .forEach { tabController in - // Use the method directly since it's defined in our extension + // Use the method from UITabBar+LED.swift extension tabController.tabBar.addTabBarLEDEffect( color: UIColor(hex: "#FF6482") ) @@ -265,7 +265,7 @@ struct TabbarView: View { // Use deprecated windows property on older iOS versions UIApplication.shared.windows.compactMap { $0.rootViewController as? UITabBarController } .forEach { tabController in - // Use the method directly since it's defined in our extension + // Use the method from UITabBar+LED.swift extension tabController.tabBar.addTabBarLEDEffect( color: UIColor(hex: "#FF6482") )