Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iOS/Extensions/UITabBar+LED.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ extension UITabBar {
speed: 5.0
)
}
}
}
6 changes: 3 additions & 3 deletions iOS/Views/TabbarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ 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
.compactMap { $0 as? UIWindowScene }
.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")
)
Expand All @@ -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")
)
Expand Down