diff --git a/IceCubesApp/App/Main/AppView.swift b/IceCubesApp/App/Main/AppView.swift index 95e4f910..c82409b6 100644 --- a/IceCubesApp/App/Main/AppView.swift +++ b/IceCubesApp/App/Main/AppView.swift @@ -142,12 +142,14 @@ struct AppView: View { .tag(tab) } } - .id(availableTabs.count) /// Resets the TabView state when the number of tabs changes to avoid navigation bar issues and prevent crashes + .id(availableTabs.count) + #if !os(visionOS) .introspect(.tabView, on: .iOS(.v17, .v18)) { (tabview: UITabBarController) in tabview.tabBar.isHidden = horizontalSizeClass == .regular tabview.customizableViewControllers = [] tabview.moreNavigationController.isNavigationBarHidden = true } + #endif } var notificationsSecondaryColumn: some View { diff --git a/Packages/Env/Sources/Env/Ext/TranslationView.swift b/Packages/Env/Sources/Env/Ext/TranslationView.swift index a1164621..5b6e3a42 100644 --- a/Packages/Env/Sources/Env/Ext/TranslationView.swift +++ b/Packages/Env/Sources/Env/Ext/TranslationView.swift @@ -5,7 +5,7 @@ import SwiftUI public extension View { func addTranslateView(isPresented: Binding, text: String) -> some View { - #if targetEnvironment(macCatalyst) + #if targetEnvironment(macCatalyst) || os(visionOS) return self #else if #available(iOS 17.4, *) {