Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maui/src/PullToRefresh/SfPullToRefresh.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,13 @@ gesture1.Class.Name is not null &&
}
}

#if NET10_0_OR_GREATER && IOS
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

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

The conditional compilation directive only includes IOS, but since this fix is tested on both iOS and macOS (as mentioned in the PR checklist), it should also include MACCATALYST. MacCatalyst apps also use UIKit and would likely experience the same gesture recognition issue on .NET 10.

Consider changing to:

#if NET10_0_OR_GREATER && (IOS || MACCATALYST)

This pattern is consistent with other conditional compilation in the codebase (e.g., Accordion/Helper/AccordionScrollView.cs:9).

Suggested change
#if NET10_0_OR_GREATER && IOS
#if NET10_0_OR_GREATER && (IOS || MACCATALYST)

Copilot uses AI. Check for mistakes.
if (gesture2 is UIPanGestureRecognizer pan2 && pan2.Class != null && pan2.Class.Name != null && pan2.Class.Name.Equals("UIScrollViewPanGestureRecognizer", StringComparison.Ordinal))
{
return true;
}
#endif

return false;
}

Expand Down
Loading