-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[net9.0] Disable NSToolbar Tabs (#25184)
* Disable NSToolbar Tabs * - fix OS check * Update TabbedViewExtensions.cs * Update TabbedViewExtensions.cs * - analyze this --------- Co-authored-by: Shane Neuville <[email protected]>
- Loading branch information
1 parent
c72387d
commit f147e8b
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
|
||
namespace Microsoft.Maui.Platform | ||
{ | ||
#if PLATFORM | ||
internal static partial class OperatingSystemMacCatalyst18Workaround | ||
{ | ||
public static bool IsMacCatalystVersionAtLeast18() | ||
{ | ||
#if !MACCATALYST | ||
return false; | ||
#else | ||
// Delete all uses of this once this is merged | ||
// /https://github.com/xamarin/xamarin-macios/issues/21390 | ||
|
||
|
||
return Environment.OSVersion.Version.Major >= 18; | ||
#endif | ||
} | ||
} | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters