Skip to content

Fix SwipeView Threshold changes width and offset of the side menu (when visible) - #36878

Merged
kubaflo merged 3 commits into
dotnet:inflight/candidatefrom
KarthikRajaKalaimani:fix-6016-sub
Jul 31, 2026
Merged

kubaflo merged 3 commits into
dotnet:inflight/candidatefrom
KarthikRajaKalaimani:fix-6016-sub

Conversation

@KarthikRajaKalaimani

@KarthikRajaKalaimani KarthikRajaKalaimani commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details

SwipeView Threshold changes width and offset of the side menu (when visible) Opened.

Root Cause

The SwipeView.Threshold property is designed for a single purpose: setting the minimum drag distance a user must swipe before the menu snaps open. It has nothing to do with how wide the menu
items should appear or where the content settles after the swipe. However, the platform code on both iOS and Android was incorrectly using this value in two unrelated calculations.

The first misuse was in GetSwipeItemSize(), where the code checked if Threshold > 0 and, if so, used the threshold value as the item's width. This meant that setting Threshold=200 would inflate
every swipe item to 200pt wide, far larger than the intended ~100pt. The second misuse was in GetSwipeThreshold(ISwipeItems), which had an early return that directly handed back the Threshold
value as the snap-open distance. So the content would snap to 200pt offset instead of snapping to the actual menu width. Together, these two bugs caused both the menu to look bloated and the
content displacement to differ depending on whether Threshold was set.

Description of Change

The fix removes Threshold from both of those calculations entirely. Item sizing now uses only the item's configured WidthRequest or the default SwipeItemWidth, as it should. The snap distance is now computed as Math.Min(Threshold, menuWidth) — meaning if Threshold is set, it acts as a cap on how far the user needs to drag, but the content still snaps to the true menu width. If Threshold is not set, the default behaviour of 60% of menu width is preserved. This was applied consistently across iOS (MauiSwipeView.cs and SwipeViewExtensions.cs) and Android (MauiSwipeView.cs).

Tested the behavior in the following platforms.

  • Android
  • Windows
  • iOS
  • Mac

Issue Fixed
Fixed #6016

Screenshots

Before After
image image

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Jul 28, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jul 28, 2026
@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-gate-failed AI could not verify tests catch the bug s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels Jul 28, 2026
@MauiBot

This comment has been minimized.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jul 28, 2026
@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests , maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@KarthikRajaKalaimani

Copy link
Copy Markdown
Contributor Author

AI Review Summary

@KarthikRajaKalaimani — new AI review results are available based on this last commit: 65be8a2.

Gate Partial Confidence Low Platform iOS

🗂️ Review Sessions — click to expand

🚦 Gate — Test Before & After Fix

Gate Result: ❌ FAILED

Platform: IOS · Base: inflight/candidate · Merge base: fa8ee5f0

🩺 Regression in another test — at least one test goes FAIL→PASS (fix works there), but another test FAILs both with and without the fix. The fix breaks a pre-existing or sibling test.

Test Without Fix (expect FAIL) With Fix (expect PASS)
🖥️ Issue6016 Issue6016 ✅ FAIL — 280s ✅ PASS — 102s
🖥️ Issue7580 Issue7580 ✅ FAIL — 114s ❌ FAIL — 322s
🔴 Without fix — 🖥️ Issue6016: FAIL ✅ · 280s
Error-relevant lines (filtered from the build log):

     at Microsoft.Maui.TestCases.Tests.Issues.Issue6016.SwipeViewThresholdShouldNotChangeMenuWidth(String defaultContentId, String thresholdContentId, String defaultSwipeViewId, String thresholdSwipeViewId, Boolean swipeRight) in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue6016.cs:line 77
   at InvokeStub_Issue6016.SwipeViewThresholdShouldNotChangeMenuWidth(Object, Span`1)

🟢 With fix — 🖥️ Issue6016: PASS ✅ · 102s
(no coded error found; showing last 1200 chars)

ter 4.5.0.0: Test execution started
Running selected tests in /Users/cloudtest/vss/_work/1/s/artifacts/bin/Controls.TestCases.iOS.Tests/Debug/net10.0/Controls.TestCases.iOS.Tests.dll
   NUnit3TestExecutor discovered 3 of 3 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 7/28/2026 8:45:39 AM FixtureSetup for Issue6016(iOS)
>>>>> 7/28/2026 8:45:43 AM SwipeViewThresholdShouldNotChangeMenuWidth Start
>>>>> 7/28/2026 8:45:45 AM SwipeViewThresholdShouldNotChangeMenuWidth Stop
  Passed LeftItems [2 s]
>>>>> 7/28/2026 8:45:45 AM SwipeViewThresholdShouldNotChangeMenuWidth Start
>>>>> 7/28/2026 8:45:51 AM SwipeViewThresholdShouldNotChangeMenuWidth Stop
  Passed RightItems [5 s]
>>>>> 7/28/2026 8:45:51 AM SwipeViewExecuteModeTriggers Start
>>>>> 7/28/2026 8:45:52 AM SwipeViewExecuteModeTriggers Stop
  Passed SwipeViewExecuteModeTriggers [904 ms]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /Users/cloudtest/vss/_work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue6016.trx

Test Run Successful.
Total tests: 3
     Passed: 3
 Total time: 27.0020 Seconds
>>> TRX_RESULT_FILE: /Users/cloudtest/vss/_work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue6016.trx

🔴 Without fix — 🖥️ Issue7580: FAIL ✅ · 114s
Error-relevant lines (filtered from the build log):

     at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2757
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2784
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 793
   at Microsoft.Maui.TestCases.Tests.Issues.Issue7580.SwipeItemVisibilityChangeShouldNotInvokeTwice() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue7580.cs:line 25
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

🟢 With fix — 🖥️ Issue7580: FAIL ❌ · 322s
Error-relevant lines (filtered from the build log):

     at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2757
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2784
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 793
   at Microsoft.Maui.TestCases.Tests.Issues.Issue7580.SwipeItemVisibilityChangeShouldNotInvokeTwice() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue7580.cs:line 25
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

⚠️ Failure Details

  • ❌ Issue7580 FAILED with fix (should pass)

    • SwipeItemVisibilityChangeShouldNotInvokeTwice [15 s]
    • System.TimeoutException : Timed out waiting for element...

📁 Fix files reverted (3 files)

  • src/Core/src/Platform/Android/MauiSwipeView.cs
  • src/Core/src/Platform/iOS/MauiSwipeView.cs
  • src/Core/src/Platform/iOS/SwipeViewExtensions.cs

📱 UI Tests — SwipeView,ViewBaseTests

Detected UI test categories: SwipeView,ViewBaseTests

❌ Deep UI tests — 185 passed, 2 failed across 2 categories on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
SwipeView 73/75 (2 ❌) 2 diff PNGs
ViewBaseTests 112/112 ✓ —
🔍 AI analysis of failures — PR-related vs unrelated

🔍 AI-generated triage (GitHub Copilot CLI) — a heuristic judgement of whether each deep UI test failure is connected to this PR's changes. Verify before relying on it.

Likely PR-related: one or more failures appear connected to this PR's changes.

  • ✗ PR-related — iOS SwipeView behavior and touched test coverage (1 test): SwipeItemVisibilityChangeShouldNotInvokeTwice was edited by this PR and also exercises the iOS SwipeView code paths changed in Platform/iOS/MauiSwipeView.cs, so the element timeout is more likely a PR-introduced gesture/test regression than a generic unrelated timeout.
  • ✗ PR-related — iOS SwipeView image snapshot baseline (1 test): the failing ItemImageSourceShouldBeVisible screenshot is in the SwipeView area and this PR updates the exact iOS-26 baseline for that snapshot, so the 1.71% visual mismatch points to a PR snapshot/rendering mismatch.

Strongest signal: both failures are on iOS, and the PR changes iOS SwipeView implementation plus the exact affected tests/baselines.

❌ SwipeView — 2 failed tests

SwipeItemVisibilityChangeShouldNotInvokeTwice

System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2757
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2784
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 793
   at Microsoft.Maui.TestCases.Tests.Issues.Issue7580.SwipeItemVisibilityChangeShouldNotInvokeTwice() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue7580.cs:line 25
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHa
...

ItemImageSourceShouldBeVisible

VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: ItemImageSourceShouldBeVisible.png (1.71% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 477
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay,
...

📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

📋 Pre-Flight — Context & Validation

Issue: #6016 - SwipeView Threshold changes width and offset of the side menu (when visible) PR: #36878 - Fix SwipeView Threshold changes width and offset of the side menu (when visible) Platforms Affected: Android, iOS, MacCatalyst (testing platform requested: iOS) Files Changed: 4 implementation, 22 test/snapshot

Key Findings

  • PR separates SwipeView final open distance/item sizing from Threshold, addressing the menu-width/content-offset regression.
  • PR also changes Execute mode to invoke only the first visible item to avoid multiple command executions when item visibility mutates.
  • Gate was already reported failed and was not rerun; targeted candidate tests were run only during try-fix attempts.
  • GitHub CLI was unauthenticated, so PR/issue context was gathered through public API and local branch state; required-check status remained only partially classified.

Code Review Summary

Verdict: NEEDS_CHANGES Confidence: low Errors: 2 | Warnings: 0 | Suggestions: 0

Key code review findings:

  • ✗ src/Core/src/Platform/Android/MauiSwipeView.cs:1018 and src/Core/src/Platform/iOS/MauiSwipeView.cs:775 use Math.Min(Threshold, openDistance), which turns large Threshold values into an open-distance cap rather than an uncapped minimum drag distance.
  • ✗ src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue7580.cs:25 waits for SwipeContent, but the host page did not define that AutomationId in the PR baseline.

Fix Candidates

Source Approach Test Result Files Changed Notes

PR PR #36878 Remove Threshold from item sizing/final open offset; use Math.Min(Threshold, openDistance) at activation sites; execute first visible item ❌ FAILED (Gate supplied by caller) platform SwipeView + UI tests/snapshots Gate failed before this phase; code review also found broken Issue7580 selector.
🔬 Code Review — Deep Analysis

Code Review — PR #36878

Independent Assessment

What this changes: Separates SwipeView “open distance” from Threshold on Android/iOS/MacCatalyst, updates SwipeItem sizing, changes Execute-mode invocation to one visible item, and adds/updates UI tests/snapshots. Inferred motivation: Fix Threshold inflating SwipeItem width/content offset while preserving Execute-mode behavior.

Reconciliation with PR Narrative

Author claims: Threshold should only control minimum drag distance, not menu width/open offset. Agreement/disagreement: The sizing/open-offset separation is directionally right. However, the implementation turns large Threshold values into an open-distance cap, not a minimum drag distance.

Prior Review Reconciliation

No prior ❌ Error findings found. Queried top-level reviews, inline review comments, and PR issue comments via public API; only bot/comments were present.

Blast Radius Assessment

  • Runs for all instances: Yes — all Android/iOS/MacCatalyst SwipeView touch/programmatic open paths.
  • Startup impact: No.
  • Static/shared state: No.

CI Status

  • Required-check result: gh pr checks --required unavailable; gh is unauthenticated.
  • Public check result: maui-pr failed for head 65be8a25....
  • Classification: CI red; visible build errors are in SimpleTemplateTest.cs (Assert.IsTrue) outside this PR’s touched files, likely unrelated, but not fully proven.
  • Action taken: Invoked azdo-build-investigator; ci-analysis skill unavailable; confidence capped low.

Findings

❌ Error — Large Threshold values are ignored as a minimum swipe distance

src/Core/src/Platform/Android/MauiSwipeView.cs:1018 and src/Core/src/Platform/iOS/MauiSwipeView.cs:775 use Math.Min(Element.Threshold, GetSwipeOpenDistance()). For a one-item menu with ~100 DIP open distance and Threshold=200, a ~100–120 DIP drag can now open/execute, although ISwipeView.Threshold is documented as the minimum swipe distance. RaiseSwipeEnded repeats the same logic at Android line 1428 and iOS line 1217.

❌ Error — Updated Issue7580 test waits for a missing AutomationId

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue7580.cs:25 waits for "SwipeContent", but the host page only assigns "SwipeTarget" to the inner label and never defines "SwipeContent". The test will time out before exercising the regression.

Failure-Mode Probing

  • Large threshold > menu width: current clamped offset reaches open distance, then Math.Min treats it as enough; custom threshold no longer delays recognition.
  • Execute mode with visibility mutation: one visible item invocation avoids the previous multiple-execute path.
  • Handler reconnect/dispose: _swipeOpenDistance is reset during dispose/layout paths; no static state leak found.
  • Null content/Element: guarded in the inspected paths.

Verdict: NEEDS_CHANGES

Confidence: low, due red/partially classified CI and platform UI plumbing scope. Summary: The PR fixes part of the sizing problem, but it regresses Threshold semantics for large values and introduces a broken UI test selector. No GitHub comments were posted.

🛠️ Fix — Analysis & Comparison

Fix Candidates

Source Approach Test Result Files Changed Notes

1 try-fix Raw trigger distance compared directly to explicit Threshold; fix SwipeContent AutomationId ❌ FAIL 3 files Issue7580 passed, but Issue6016 threshold rows stayed closed because this honored Threshold=200 as an uncapped minimum.
2 try-fix Centralized capped activation helper (min(Threshold, openDistance)) plus non-LINQ first-visible Execute lookup and selector fix ❌ FAIL 3 files Issue6016 passed, but Issue7580 did not execute; clamped visual offset was insufficient for Execute Threshold=250.
3 try-fix Mode-aware activation: Reveal caps Threshold to open distance; Execute compares raw gesture distance to explicit Threshold; selector fix and non-LINQ Execute lookup ✅ PASS 3 files Passed all targeted iOS regressions and is more robust than the PR because it handles Execute-mode Threshold separately.
PR PR #36878 Threshold removed from sizing/open distance; duplicated capped activation at each comparison site ❌ FAILED (Gate) platform SwipeView + UI tests/snapshots Original PR/gate baseline failed; code review found broken Issue7580 selector.

Cross-Pollination

Model Round New Ideas? Details
maui-expert-reviewer 1 Yes Candidate 1: raw gesture trigger distance separate from visual open distance.
maui-expert-reviewer 2 Yes Candidate 2: centralized capped activation helper after Candidate 1 failed Issue6016.
maui-expert-reviewer 3 Yes Candidate 3: mode-aware activation after Candidate 2 failed Issue7580.
maui-expert-reviewer 4 No Stopped because Candidate 3 passed all targeted tests and is meaningfully different/better than the PR baseline.
Exhausted: No Selected Fix: Candidate #3 — passed targeted iOS Issue6016/Issue7580 tests and improves on the PR by fixing the missing SwipeContent AutomationId, avoiding LINQ in Execute activation, centralizing activation logic, and using raw gesture distance only where needed for Execute-mode Threshold.

📝 Recommended PR Title & Description

Assessment: ✏️ Recommend updating — the current metadata describes the raw PR's Math.Min(Threshold, menuWidth) behavior, but the winning fix is mode-aware and also includes the Issue7580 selector/Execute-mode correction.

Recommended title

[iOS/Android] SwipeView: Separate Threshold from side-menu sizing

Recommended description

## Issue Details

SwipeView Threshold changes width and offset of the side menu when the menu is visible.

## Root Cause

The SwipeView.Threshold property is intended to control how far the user must swipe before the SwipeView activates. It should not decide how wide SwipeItems are or where the content settles after the swipe.

The platform code on iOS/MacCatalyst and Android was using Threshold in unrelated calculations:

1. `GetSwipeItemSize()` treated a positive Threshold as the SwipeItem width, so `Threshold=200` inflated default menu items far beyond the intended default width.
2. The final open distance/snap offset could be derived from Threshold instead of the actual menu width, so content displacement changed when Threshold was set.

The Execute-mode path also needs special handling: a large explicit Threshold must remain meaningful as the command activation distance, but the visual menu offset must still be clamped to the actual menu width.

## Description of Change

The fix separates visual open distance from activation distance:

- SwipeItem sizing now uses the item's configured `WidthRequest` or the default `SwipeItemWidth`, not `Threshold`.
- Reveal-mode side menus open and settle to the actual menu width, so setting `Threshold` no longer changes the menu width or content offset.
- Execute mode tracks the raw gesture distance separately from the clamped visual offset so a large explicit `Threshold` still controls command activation.
- Execute mode invokes only the first visible SwipeItem, matching WinUI behavior and avoiding multiple command executions when item visibility changes during invocation.
- The Issue7580 test host page now exposes the `SwipeContent` AutomationId used by the updated UI test.

This was applied across iOS/MacCatalyst (`MauiSwipeView.cs`, `SwipeViewExtensions.cs`) and Android (`MauiSwipeView.cs`).

## What NOT to Do

- Don't use `Threshold` as a SwipeItem width; default SwipeItems should continue to use `SwipeItemWidth` unless a specific item size is configured.
- Don't use `Threshold` as the final side-menu open offset; the open offset should be the actual menu width.
- Don't compare Execute-mode activation only against the clamped visual offset; that makes large explicit Threshold values ineffective.

**Tested the behavior in the following platforms.**
- [x] Android
- [ ] Windows
- [x] iOS
- [x] Mac

**Issue Fixed**
Fixes #6016

**Note**
PR #36713 was reverted due to behavior confirmation.

## Screenshots
| Before  | After  |
|---------|--------|
| <img width="320" height="572" alt="image" src="https://github.com/user-attachments/assets/83ecc2bd-55db-4874-9508-1dadddb1483d" /> | <img width="319" height="573" alt="image" src="https://github.com/user-attachments/assets/9f6aa6cc-1762-47ee-a60f-88cdf3b08c36" /> |

🏁 Report — Final Recommendation

Comparative Fix Report — PR #36878

Candidates compared

Rank Candidate Regression status Assessment
1 pr-plus-reviewer ✅ Equivalent to passing try-fix-3 patch Best candidate. It keeps the PR's menu-sizing/open-distance fix, applies the expert feedback, fixes the broken Issue7580 selector, and preserves explicit Threshold semantics for Execute mode by using raw gesture distance only there.
2 try-fix-3 ✅ PASS — targeted iOS Issue6016 LeftItems, RightItems, ExecuteMode, and Issue7580 passed Technically tied with pr-plus-reviewer; same effective fix. Ranked second only because pr-plus-reviewer is the PR path with expert feedback applied.
3 try-fix-2 ❌ FAIL — Issue7580 InvokeCount stayed 0 Better structured than the raw PR and fixed #6016, but failed Execute-mode regression coverage because clamped visual offset was insufficient for Threshold=250.
4 try-fix-1 ❌ FAIL — Issue6016 threshold rows stayed closed Preserved explicit Threshold as an uncapped minimum everywhere, but that failed the #6016 expected behavior for Reveal-mode side menus.
5 pr ❌ FAILED — supplied gate failed; expert findings unresolved Fixes item sizing/open offset in part, but leaves large explicit Threshold values ineffective for activation and breaks the updated Issue7580 test selector.

Winner

pr-plus-reviewer is the winning candidate. It combines the submitted PR's correct separation of menu size/open distance from Threshold with the expert review corrections, while matching the only empirically passing try-fix result. Failed candidates are ranked below passing candidates as required.

Rationale

The key distinction is mode-aware threshold handling. Reveal-mode side menus need to open to the real menu width even when Threshold is larger than that width, which resolves #6016. Execute mode still needs to respect a large explicit Threshold as the activation distance; using raw gesture distance for Execute mode avoids the try-fix-2 failure and preserves the intended command-trigger behavior.

🧭 Next Steps — review latest findings

addressed the Ai summary concerns

@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests , maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jul 30, 2026
@MauiBot MauiBot added s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) and removed s/agent-gate-failed AI could not verify tests catch the bug labels Jul 30, 2026
@MauiBot

MauiBot commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

AI Review Summary

@KarthikRajaKalaimani — new AI review results are available based on this last commit: e5eab09.

Gate Passed Confidence Low Platform Android


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ✅ PASSED

Platform: ANDROID · Base: inflight/candidate · Merge base: 7488f8bf

✅ Fix verified — 1 test(s) reproduce the bug (FAIL without the fix → PASS with it). 1 test(s) pass in both states and are not bug-reproducing; under the "at least one test reproduces the bug and none regress" rule they don't block the gate.

Test Without Fix (expect FAIL) With Fix (expect PASS)
🖥️ Issue6016 Issue6016 ✅ FAIL — 1851s ✅ PASS — 588s
🖥️ Issue7580 Issue7580 ❌ PASS — 1758s ✅ PASS — 567s
🔴 Without fix — 🖥️ Issue6016: FAIL ✅ · 1851s

Error-relevant lines (filtered from the build log):

/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: Mono.AndroidTools.InstallFailedException: Unexpected install output: cmd: Failure calling service package: Broken pipe (32) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:  [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass105_0.<InstallPackage>b__0(Task`1 t) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: --- End of stack trace from previous location --- [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at AndroidDeviceExtensions.PushAndInstallPackageAsync(AndroidDevice device, PushAndInstallCommand command, CancellationToken token) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Xamarin.Android.Tasks.FastDeploy.InstallPackage(Boolean installed) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.2/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Xamarin.Android.Tasks.FastDeploy.RunInstall() [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
Build FAILED.
     at Microsoft.Maui.TestCases.Tests.Issues.Issue6016.SwipeViewThresholdShouldNotChangeMenuWidth(String defaultContentId, String thresholdContentId, String defaultSwipeViewId, String thresholdSwipeViewId, Boolean swipeRight) in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue6016.cs:line 77
   at InvokeStub_Issue6016.SwipeViewThresholdShouldNotChangeMenuWidth(Object, Span`1)
🟢 With fix — 🖥️ Issue6016: PASS ✅ · 588s

(no coded error found; showing last 1200 chars)

estCases.Android.Tests
NUnit Adapter 4.5.0.0: Test execution started
Running selected tests in /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/Controls.TestCases.Android.Tests.dll
   NUnit3TestExecutor discovered 3 of 3 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 07/30/2026 17:06:32 FixtureSetup for Issue6016(Android)
>>>>> 07/30/2026 17:06:34 SwipeViewThresholdShouldNotChangeMenuWidth Start
>>>>> 07/30/2026 17:06:39 SwipeViewThresholdShouldNotChangeMenuWidth Stop
  Passed LeftItems [4 s]
>>>>> 07/30/2026 17:06:39 SwipeViewThresholdShouldNotChangeMenuWidth Start
>>>>> 07/30/2026 17:06:42 SwipeViewThresholdShouldNotChangeMenuWidth Stop
  Passed RightItems [3 s]
>>>>> 07/30/2026 17:06:42 SwipeViewExecuteModeTriggers Start
>>>>> 07/30/2026 17:06:43 SwipeViewExecuteModeTriggers Stop
  Passed SwipeViewExecuteModeTriggers [1 s]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue6016.trx
Test Run Successful.
Total tests: 3
     Passed: 3
 Total time: 22.4554 Seconds
>>> TRX_RESULT_FILE: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue6016.trx
🔴 Without fix — 🖥️ Issue7580: PASS ❌ · 1758s

(no coded error found; showing last 1200 chars)

ng test execution, please wait...
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.0)
[xUnit.net 00:00:00.13]   Discovering: Controls.TestCases.Android.Tests
[xUnit.net 00:00:00.42]   Discovered:  Controls.TestCases.Android.Tests
NUnit Adapter 4.5.0.0: Test execution started
Running selected tests in /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/Controls.TestCases.Android.Tests.dll
   NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 07/30/2026 16:37:15 FixtureSetup for Issue7580(Android)
>>>>> 07/30/2026 16:37:18 SwipeItemVisibilityChangeShouldNotInvokeTwice Start
>>>>> 07/30/2026 16:37:22 SwipeItemVisibilityChangeShouldNotInvokeTwice Stop
  Passed SwipeItemVisibilityChangeShouldNotInvokeTwice [4 s]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue7580.trx
Test Run Successful.
Total tests: 1
     Passed: 1
 Total time: 19.7312 Seconds
>>> TRX_RESULT_FILE: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue7580.trx
🟢 With fix — 🖥️ Issue7580: PASS ✅ · 567s

(no coded error found; showing last 1200 chars)

ng test execution, please wait...
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.0)
[xUnit.net 00:00:00.11]   Discovering: Controls.TestCases.Android.Tests
[xUnit.net 00:00:00.34]   Discovered:  Controls.TestCases.Android.Tests
NUnit Adapter 4.5.0.0: Test execution started
Running selected tests in /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/Controls.TestCases.Android.Tests.dll
   NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 07/30/2026 17:16:03 FixtureSetup for Issue7580(Android)
>>>>> 07/30/2026 17:16:06 SwipeItemVisibilityChangeShouldNotInvokeTwice Start
>>>>> 07/30/2026 17:16:10 SwipeItemVisibilityChangeShouldNotInvokeTwice Stop
  Passed SwipeItemVisibilityChangeShouldNotInvokeTwice [4 s]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue7580.trx
Test Run Successful.
Total tests: 1
     Passed: 1
 Total time: 17.7198 Seconds
>>> TRX_RESULT_FILE: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue7580.trx

⚠️ Failure Details

  • ❌ Issue7580 PASSED without fix (should fail) — tests don't catch the bug
📁 Fix files reverted (4 files)
  • src/Core/src/Core/ISwipeView.cs
  • src/Core/src/Platform/Android/MauiSwipeView.cs
  • src/Core/src/Platform/iOS/MauiSwipeView.cs
  • src/Core/src/Platform/iOS/SwipeViewExtensions.cs

📱 UI Tests — SwipeView,ViewBaseTests

Detected UI test categories: SwipeView,ViewBaseTests

✅ Deep UI tests — 196 passed, 0 failed across 2 categories on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
SwipeView 78/78 ✓ —
ViewBaseTests 118/119 ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

📋 Pre-Flight — Context & Validation

Issue: #6016 - SwipeView Threshold changes width and offset of the side menu
PR: #36878 - Fix SwipeView Threshold changes width and offset of the side menu (when visible)
Platforms Affected: Android, iOS, MacCatalyst
Files Changed: 3 implementation, 11 test/snapshot

Key Findings

Code Review Summary

Verdict: NEEDS_CHANGES
Confidence: low
Errors: 1 | Warnings: 0 | Suggestions: 0

Key code review findings:

  • ✗ src/Core/src/Platform/Android/MauiSwipeView.cs:1017-1020, src/Core/src/Platform/Android/MauiSwipeView.cs:1428-1430, src/Core/src/Platform/iOS/MauiSwipeView.cs:774-777, src/Core/src/Platform/iOS/MauiSwipeView.cs:1217-1219: explicit Threshold is capped to menu open distance, so large thresholds stop behaving as a requested minimum swipe distance.
  • Failure mode: Threshold=200 with a one-item menu around 100dp opens once the content reaches menu width instead of requiring the larger configured threshold.
  • Blast radius: all Android/iOS/MacCatalyst SwipeView instances on touch/open paths; no startup or static-state impact.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #36878 Decouple Threshold from item size/open offset; trigger at Math.Min(Threshold, openDistance) ✅ PASSED (Gate pre-run) MauiSwipeView.cs, SwipeViewExtensions.cs, UI tests/snapshots Original PR; leaves large-threshold semantic concern

🔬 Code Review — Deep Analysis

Code Review — PR #36878

Independent Assessment

What this changes: Decouples SwipeView.Threshold from SwipeItem sizing/final open distance on Android/iOS, uses it as an activation threshold capped by open distance, updates SwipeView UI tests/snapshots, and fixes Issue7580 test targeting.

Inferred motivation: Fix #6016 where setting Threshold made menus wider and changed opened content offset.

Reconciliation with PR Narrative

Author claims: Threshold should control trigger distance only, not menu size or final offset; PR #36713 reverted prior behavior.
Agreement/disagreement: The sizing/open-offset fix matches the claim. However, capping explicit Threshold to open distance means large threshold values no longer behave as a “minimum swipe distance.”

Prior Review Reconciliation

Prior ❌ Error Finding Source Status Evidence
Large Threshold values are ignored as a minimum swipe distance MauiBot issue comment, 2026-07-28 ❌ Unresolved Current code still uses Math.Min(Threshold, GetSwipeOpenDistance()) in Android/iOS activation paths.
Updated Issue7580 test waits for missing SwipeContent AutomationId MauiBot issue comment, 2026-07-28 ✅ Fixed Issue7580.cs host page now sets AutomationId = "SwipeContent"; latest iOS log shows SwipeItemVisibilityChangeShouldNotInvokeTwice passed.

External Output Contract

Consumer token/pattern Producer location Producer emission condition Consumer assumption Ordinary negative case Downstream effect
N/A N/A No changed code classifies external tool output N/A N/A N/A

Blast Radius Assessment

  • Runs for all instances: Yes, all Android/iOS/MacCatalyst SwipeViews.
  • Startup impact: No; touch/open/layout paths only.
  • Static/shared state: No new static state; per-instance _swipeOpenDistance cache.

CI Status

  • Required-check result: gh pr checks --required tool-unavailable; gh unauthenticated.
  • Fallback result: public check-runs show failures: Build Analysis and maui-pr-uitests.
  • Classification: Undetermined/CI red; visible iOS UITest failure includes a touched snapshot (ItemImageSourceShouldBeVisible.png).
  • Action taken: Invoked azdo-build-investigator guidance, inspected public AzDO logs, capped confidence low.

Findings

❌ Error — Explicit Threshold is capped to menu open distance

src/Core/src/Platform/Android/MauiSwipeView.cs:1017-1020, :1428-1430, and src/Core/src/Platform/iOS/MauiSwipeView.cs:774-777, :1217-1219 use Math.Min(Element.Threshold, GetSwipeOpenDistance()).

That fixes menu width/offset, but if a developer sets Threshold larger than the menu width, the swipe opens once the menu open distance is reached, not after the requested threshold distance. This conflicts with the documented “swipe distance that must be achieved” behavior and leaves the prior ❌ finding unresolved.

Failure-Mode Probing

  • Large threshold (Threshold=200, menu width 100): opens at 100, not 200.
  • Default threshold (0): still uses 60% of open distance.
  • Execute mode with visibility changes: current Issue7580 selector fix passes in latest inspected iOS log.
  • Handler reconnect/reset: no new subscriptions; cached open distance is cleared on reset/visibility update.

Verdict: NEEDS_CHANGES

Confidence: low
Summary: The main sizing fix is directionally correct, and one prior test bug is fixed. But an unresolved threshold-semantics error remains, and CI is still red/undetermined via fallback inspection.


🛠️ Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 try-fix Track raw Android gesture distance separately and require explicit Threshold to be fully reached before open/execute ❌ Failed 1 file Preserves literal large-threshold semantics, but failed Issue6016.LeftItems and Issue6016.RightItems because Threshold=200 row did not open under the gate gesture
2 try-fix Use legacy Android completion semantics for explicit thresholds: trigger at OpenSwipeThresholdPercentage * Threshold, while final open offset remains menu width ✅ Passed 1 file Avoids direct cap to menu width and passes targeted Android gate/regression tests
PR PR #36878 Decouple Threshold from item size/open offset; trigger at Math.Min(Threshold, openDistance) ✅ PASSED (Gate) 3 implementation files plus tests/snapshots Original PR; simpler but caps large explicit threshold to menu width

Cross-Pollination

Model Round New Ideas? Details
gpt-5.5 maui-expert-reviewer 2 No NO NEW IDEAS

Exhausted: Yes
Selected Fix: Candidate #2 — It passes the Android targeted gate/regression tests and is demonstrably better than the PR's Android trigger calculation because it removes the direct Math.Min(Threshold, openDistance) cap while preserving the expected visual menu width/open offset behavior. It is still a compatibility compromise rather than literal full-distance threshold semantics; try-fix-1 showed literal semantics fail the existing gate.

Candidate details

  • try-fix-1: see CustomAgentLogsTmp/PRState/36878/PRAgent/try-fix-1/content.md
  • try-fix-2: see CustomAgentLogsTmp/PRState/36878/PRAgent/try-fix-2/content.md

📝 Recommended PR Title & Description

Assessment: ✏️ Recommend updating - the current description accurately explains the visual sizing fix but is stale for the winning trigger calculation, and the title should identify the affected platforms/component.

Recommended title

[Android/iOS] SwipeView: Decouple Threshold from menu size and open offset

Recommended description

## Issue Details

SwipeView Threshold changes width and offset of the side menu when visible.

## Root Cause

The SwipeView.Threshold property controls the swipe distance used to recognize a swipe gesture. It should not determine how wide the revealed swipe items are, nor how far the content settles after the menu opens.

Android, iOS, and MacCatalyst were incorrectly using Threshold in unrelated calculations:

1. GetSwipeItemSize() used Threshold as the swipe item width when Threshold was greater than zero, so Threshold=200 inflated each menu item instead of using the configured WidthRequest or the default SwipeItemWidth.
2. The open-distance calculation returned the Threshold value directly, so opened content settled at the Threshold offset instead of the actual menu width.

Together, those paths caused both the side menu width and the final content displacement to change when Threshold was set.

## Description of Change

The fix separates three concepts that were previously conflated:

- Swipe item visual size now comes from the item's configured WidthRequest or the default SwipeItemWidth.
- Final open offset now comes from the actual revealed menu width/open distance.
- Explicit Threshold remains part of the gesture trigger calculation and is not used as the visual menu width or final open offset.

For explicit Threshold values, the trigger calculation follows the platform SwipeView completion model by using OpenSwipeThresholdPercentage * Threshold. When Threshold is not set, the existing default behavior remains OpenSwipeThresholdPercentage * openDistance.

This was applied consistently across:

- src/Core/src/Platform/Android/MauiSwipeView.cs
- src/Core/src/Platform/iOS/MauiSwipeView.cs
- src/Core/src/Platform/iOS/SwipeViewExtensions.cs

The PR also keeps the Issue7580 regression coverage by targeting the SwipeView content area directly and ensuring Execute mode invokes only the first visible SwipeItem.

## What NOT to Do

- Do not use Threshold as the SwipeItem width. That recreates #6016 by making menus visually wider when Threshold is set.
- Do not use Threshold as the final open offset. The content should settle at the actual menu width/open distance.
- Do not directly clamp explicit Threshold to menu width for the trigger path. The trigger distance and visual open distance should remain separate.

## Platforms

- Android
- iOS
- MacCatalyst

Windows is not changed by this fix.

## Issues Fixed

Fixes #6016

## Note

PR #36713 was reverted due to behavior confirmation.

🏁 Report — Final Recommendation

Comparative Report - PR #36878

Candidates Compared

Candidate Test Result Summary Rank
pr-plus-reviewer Pass evidence for Android gate via try-fix-2; iOS/MacCatalyst adjusted by same reviewed pattern Keeps the PR's visual fix and applies expert feedback so explicit Threshold is no longer directly capped to menu open distance. 1
try-fix-2 Passed Android gate/regression tests Best independent try-fix candidate. Uses OpenSwipeThresholdPercentage * Threshold for Android explicit thresholds, but only addresses Android and does not apply the same correction to iOS/MacCatalyst. 2
pr Gate passed, but expert review found an unresolved correctness issue Fixes menu width/open offset but uses Math.Min(Threshold, openDistance), so large explicit thresholds collapse to menu width. 3
try-fix-1 Failed Android gate (Issue6016.LeftItems and Issue6016.RightItems) Preserves literal full-distance threshold semantics, but the threshold row did not open under the regression gesture, so it must rank below passing candidates. 4

Analysis

The raw PR is directionally correct for #6016: it removes Threshold from menu item sizing and final open offset, so Threshold=200 no longer bloats the side menu or moves content by 200dp/pt. The expert reviewer found that the raw trigger calculation overcorrects by clamping explicit thresholds to the computed open distance. That means a threshold larger than the menu width no longer acts as a distinct trigger distance.

try-fix-1 is the strictest semantic interpretation because it requires the raw drag distance to reach the full explicit threshold. It failed the required Android regression gate, so it is not viable under the ordering rule that failed candidates rank below passing candidates.

try-fix-2 is the strongest STEP 5a candidate. It restores the platform's previous 60%-completion model for explicit thresholds while keeping the PR's visual open distance fix, and it passed the Android gate/regression tests. Its limitation is scope: it only changes Android, while the PR's regression and expert finding also apply to iOS/MacCatalyst.

pr-plus-reviewer combines the raw PR with the expert-review correction. It keeps the passing Android behavior represented by try-fix-2 and applies the same trigger-helper pattern to iOS/MacCatalyst, resolving both expert inline findings without reintroducing threshold-based menu sizing or offset.

Winner

Winner: pr-plus-reviewer

Rationale: pr-plus-reviewer is the most complete candidate because it preserves the PR's user-visible fix, incorporates the passing Android trigger approach from try-fix-2, and applies the same expert-review correction to iOS/MacCatalyst. It ranks above pr because the raw PR leaves the explicit-threshold cap unresolved, and above try-fix-2 because it covers all affected platforms.


🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jul 30, 2026
@kubaflo
kubaflo merged commit dd08631 into dotnet:inflight/candidate Jul 31, 2026
33 of 36 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR10 milestone Jul 31, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-swipeview SwipeView community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/ios platform/macos macOS / Mac Catalyst s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants