File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Controls/src/Core/Compatibility/Handlers/Shell/iOS Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,14 @@ void UpdateTabBarHidden()
439439 if ( ShellItemController == null )
440440 return ;
441441
442- TabBar . Hidden = ! ShellItemController . ShowTabs ;
442+ if ( OperatingSystemMacCatalyst18Workaround . IsMacCatalystVersionAtLeast18 ( ) || OperatingSystem . IsIOSVersionAtLeast ( 18 ) )
443+ {
444+ TabBarHidden = ! ShellItemController . ShowTabs ;
445+ }
446+ else
447+ {
448+ TabBar . Hidden = ! ShellItemController . ShowTabs ;
449+ }
443450 }
444451 }
445452}
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ internal static void DisableiOS18ToolbarTabs(this UITabBarController tabBarContr
1717 {
1818 tabBarController . TraitOverrides . HorizontalSizeClass = UIUserInterfaceSizeClass . Compact ;
1919 tabBarController . Mode = UITabBarControllerMode . TabSidebar ;
20- tabBarController . Sidebar . Hidden = true ;
21- tabBarController . TabBarHidden = true ;
2220 }
2321 else if ( OperatingSystem . IsIOSVersionAtLeast ( 18 , 0 ) && UIDevice . CurrentDevice . UserInterfaceIdiom == UIUserInterfaceIdiom . Pad )
2422 {
You can’t perform that action at this time.
0 commit comments