Skip to content

[MacCatalyst] OperatingSystem is currently not working  #21390

@PureWeen

Description

@PureWeen

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

aoperatingsystem.zip

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

image

iOS

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions