- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.2k
 
Labels
area-System.Runtimein-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-maccatalystMacCatalyst OSMacCatalyst OS
Milestone
Description
From @PureWeen on Tue, 08 Oct 2024 20:22:20 GMT
Description
It looks like on MacCatalyst the Build on the Environment.OSVersion.Version is set to "-1" so when you call
if (OperatingSystem.IsMacCatalystVersionAtLeast(18,0))
it resolves to false.
This works fine on iOS just not MacCatalyst
Reproduction
Just run the app and I've set a label on the screen to output the value of OSVersion.Version. I've also included some if statements in the main page you can break point
Catalyst
iOS
Copied from original issue dotnet/macios#21390
Metadata
Metadata
Assignees
Labels
area-System.Runtimein-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-maccatalystMacCatalyst OSMacCatalyst OS

