Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up relevant CA1416 warnings - Set 4 #26995

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tamilarasan-Paranthaman
Copy link
Contributor

Description of Change

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 8, 2025
Copy link
Contributor

Hey there @Tamilarasan-Paranthaman! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@Tamilarasan-Paranthaman Tamilarasan-Paranthaman marked this pull request as ready for review January 8, 2025 10:01
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman requested a review from a team as a code owner January 8, 2025 10:01
@karthikraja-arumugam karthikraja-arumugam added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 8, 2025
@Tamilarasan-Paranthaman
Copy link
Contributor Author

@dotnet-policy-service terminate

@Tamilarasan-Paranthaman
Copy link
Contributor Author

@dotnet-policy-service agree company="Syncfusion, Inc."

@jfversluis
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen added this to the .NET 9 SR3 milestone Jan 8, 2025
if (OperatingSystem.IsMacCatalystVersionAtLeast(14))

// WindowingBehaviors is only available on iOS 16+ and Mac Catalyst
if (OperatingSystem.IsMacCatalystVersionAtLeast(16) || OperatingSystem.IsIOSVersionAtLeast(16))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PureWeen
Copy link
Member

PureWeen commented Jan 8, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen requested a review from Copilot January 8, 2025 18:06

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/Core/src/Handlers/Application/ApplicationHandler.iOS.cs:51

  • [nitpick] The comment should specify that ActivateSceneSession requires iOS 17+ or MacCatalyst 17+ for clarity.
// ActivateSceneSession requires 17+
@jfversluis jfversluis added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Jan 9, 2025
@@ -29,6 +29,7 @@ public override void BuildMenu(IUIMenuBuilder builder)
MenuBuilder = builder;

UIWindow? window = null;

if (OperatingSystem.IsMacCatalystVersionAtLeast(14))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (OperatingSystem.IsMacCatalystVersionAtLeast(14))
if (OperatingSystem.IsMacCatalystVersionAtLeast(14) || OperatingSystem.IsIOSVersionAtLeast(14))

@@ -60,7 +61,9 @@ public override void BuildMenu(IUIMenuBuilder builder)
}
}
else
{
window = activeWindowScenes[0].KeyWindow;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here we'll need to add an if statement for "15"

KeyWindow is only available in 15
https://developer.apple.com/documentation/uikit/uiwindowscene/keywindow

So, if it's lower than 15 we'll want to probably check the windows array and return that
https://developer.apple.com/documentation/uikit/uiwindowscene/windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
Status: Changes Requested
Development

Successfully merging this pull request may close these issues.

5 participants