Skip to content

[iOS] Fix OnNavigatedTo not called on iOS on tabs placed in the "More" section of a TabbedPage - #40656

Draft
Dhivya-SF4094 wants to merge 5 commits into
dotnet:mainfrom
Dhivya-SF4094:IssueFix-16175
Draft

Dhivya-SF4094 wants to merge 5 commits into
dotnet:mainfrom
Dhivya-SF4094:IssueFix-16175

Conversation

@Dhivya-SF4094

@Dhivya-SF4094 Dhivya-SF4094 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Issue detail

Pages selected from iOS’s More menu do not reliably receive OnNavigatedTo

Root cause

On iOS, UIKit can display a tab selected from the native More list without triggering MAUI's normal tab-selection flow. As a result, the newly selected tab becomes visible, but TabbedPage.CurrentPage continues to reference the previously selected tab, preventing the new tab from receiving the NavigatedTo event.

Description of Change

When UIKit invokes ViewDidAppear, MAUI verifies whether the appearing controller is the active More destination before updating CurrentPage. For tabs hosted inside a NavigationPage, MAUI resolves and selects the owning NavigationPage rather than the inner page. This ensures that NavigatedTo is raised through the normal MAUI lifecycle after the destination appears, without modifying MoreNavigationController.Delegate or triggering another tab selection in UIKit.

Fixes

Fixes #16175

Tested the behavior in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Output

Before After
Issue16175_BeforeFix.mov
Issue16175_AfterFix.mov

@github-actions

This comment has been minimized.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Nov 26, 2026
@vishnumenon2684 vishnumenon2684 added the community ✨ Community Contribution label Nov 26, 2026
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Expert Review — 2 findings

Reviewed commit 2a011b8.

See inline comments for details.

kubaflo added a commit that referenced this pull request Nov 28, 2026
…0755)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Fix the deterministic `PageTransitionsTests` failures on `main`,
including the product defects exposed once the More controller actually
runs the transition.

#### Product fixes

- **Programmatically selected overflow tabs never installed the More
navigation delegate.** UIKit reports the selected section's own
controller, not `MoreNavigationController`, even though it displays that
section inside More. Both Shell implementations now install their
existing delegate for overflow sections when there are more than five
tabs. This enables the custom animator, completion tracking, and
shared-element flights.
- **The compatibility renderer popped the wrong native stack.** Its
pop-to-root operation now targets the overflow section's root on the
active More controller and completes through the same transition-aware
path as a single pop. It also reads the active controller's top page
when recording an unanimated push, so a later pop reverses `None`
instead of the page's configured Fade.
- **The managed transition-coordinator binding rejects a null animation
callback.** Supply a no-op animation callback while registering
completion. Once the missing More delegate was fixed, the original
callback produced `ArgumentNullException: animate` from
`UIViewControllerTransitionCoordinatorWrapper.AnimateAlongsideTransition`.

Native/default More navigation still completes immediately; only custom
page transitions wait for their animation.

#### Corrections to provably invalid test setup

- `WindowHandlerStub` presents a workspace inside the runner's window;
it never replaces `UIWindow.RootViewController`. Root-replacement tests
now use a separate real window with the production content mapper. Their
snapshot probe checks UIKit's native replicant class instead of the CLR
`UIView` wrapper name.
- `Window.PropertyChanged` runs **before** native content mapping.
Install the root's own animation after the assignment, assert that it
exists, and finish the replacement without detaching the root. Detaching
an outgoing root lets UIKit remove its animations independently of
MAUI's cleanup, invalidating the original assertion.
- The destination may not have a handler immediately after `PushAsync`
starts. Wait for its content to load before reading native visibility,
and use a short asynchronous delay when polling so the platform
animation loop can run. The original Android test throws in
`NativeShown` before it can inspect a flight.
- More navigation intentionally completes immediately for an unanimated
push. Wait for the pushed content to load before issuing the next
push/pop-to-root; otherwise UIKit has not yet finished presenting that
controller.

#### Which landing introduced this?

The faulty transition code and tests came from #40537 (`f7d3fc1c99`),
not the storyboard landing #40536 (`c1f549fd52`). Comparing those
commits for all six files changed here produces an **empty diff**. The
tests do not use storyboard animation holds. #40537's recorded checks
include `maui-pr` but no `maui-pr-devicetests` check, so its successful
build was not evidence that these device tests passed.

The supplied main-branch CI window was last green at
[1699752](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1699752)
(`eeda7f80ed`), with the failures present from
[1699985](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1699985)
(`c1f549fd52`) onward, including
[1703407](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703407).

Before implementation, searched open and recently merged PRs across all
bases, including `release/*`, `inflight/*`, and `candidate/*`. Inspected
#40658 (bottom-sheet/modal transitions), #40344 (tab reselection),
#40656 (TabbedPage lifecycle), #40696 (queued animation cancellation),
and #40710 (zero-length tweens); none contains these fixes.

#### Local causal validation

All counts below are **passed / failed**, read from fresh XHarness XML
with exact-class isolation verified. Each platform was measured on
original sources, with the correction, with the correction reverted, and
with it restored. No physical devices were used.

| Phase | iOS 27 simulator | Mac Catalyst | Android API 33 emulator |
| --- | --- | --- | --- |
| Original baseline | 18 / 6 | 18 / 6 | 12 / 1 |
| Fixed | 24 / 0 | 24 / 0 | 13 / 0 |
| Reverted | 18 / 6 | 18 / 6 | 12 / 1 |
| Restored | 24 / 0 | 24 / 0 | 13 / 0 |

The reverted Apple failures are the two root tests and both variants of
the More navigation/shared-element tests. Android reproduces the
destination-handler `NullReferenceException`. The Helix Mac Catalyst
opacity timeout did **not** reproduce locally; that case passed locally
before and after the correction. Final validation additionally passed
**24 / 0 on an iOS 18.5 simulator**.

Commands below were run from an isolated worktree based on `main` at
`6d74c1c0d9`. `.dotnet` contains the SDK pinned by `global.json`
(`12.0.100-alpha.1.26523.103`); Xcode is 27.2.

```bash
export PATH="$PWD/.dotnet:$PATH"
export DOTNET_ROOT="$PWD/.dotnet"
export TMPDIR="$PWD/artifacts/transition-evidence/scratch"
export DOTNET_CLI_USE_MSBUILD_SERVER=0
export MSBUILDDISABLENODEREUSE=1
export DOTNET_ROLL_FORWARD=Major
export HEADLESS=true
```

Preparation — all succeeded:

```bash
dotnet build src/DotNet/DotNet.csproj -p:InstallDotNet=false -p:TreatWarningsAsErrors=false -v:minimal
dotnet workload install ios maccatalyst --skip-manifest-update --verbosity minimal
dotnet build Microsoft.Maui.BuildTasks.slnf -p:TreatWarningsAsErrors=false --disable-build-servers -v:minimal
dotnet tool restore
```

iOS causal runs — original/reverted failed **18/6**; fixed/restored
passed **24/0**:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform ios -iOSVersion 27 -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -SkipXcodeVersionCheck -Timeout 00:10:00 -Rebuild
```

Mac Catalyst causal runs — original/reverted failed **18/6**;
fixed/restored passed **24/0**:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform maccatalyst -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -SkipXcodeVersionCheck -Timeout 00:10:00 -Rebuild
```

Android causal runs — original/reverted failed **12/1**; fixed/restored
passed **13/0**:

```bash
export EmbedAssembliesIntoApk=true
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform android -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -Timeout 00:10:00 -Rebuild
```

The runner selected `emulator-5556` and passed `--instrumentation
com.microsoft.maui.controls.devicetests.TestInstrumentation`. A separate
read-only API 33 emulator was used after another emulator's unauthorized
ADB transport prevented the initial attempt from running tests.

iOS 18.5 final compatibility check — passed **24/0**:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform ios -iOSVersion 18.5 -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -SkipXcodeVersionCheck -Timeout 00:10:00
```

Formatting/checks — passed, with workspace-loading warnings from the
formatter:

```bash
dotnet format whitespace Microsoft.Maui.sln --no-restore --include src/Controls/tests/DeviceTests/Elements/PageTransitions/PageTransitionsTests.cs src/Controls/tests/DeviceTests/Elements/PageTransitions/PageTransitionsTests.iOS.cs --verify-no-changes
git diff --check
```

The full repository formatter was also attempted; it emitted unrelated
analyzer edits and multi-target conflict markers. Those edits were
discarded, and the surgical patch was rebuilt and retested. No unrun CI
check is represented as passing.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Deterministic main-branch `maui-pr-devicetests` failures described
above; tracked here by the linked failing builds rather than an
unrelated issue number.

### Let AI finish this PR

- [ ] **Let the MAUI agent address review feedback and fix remaining
issues on this PR.** Maintainers still decide whether it is merged. For
PRs from forks, the agent opens a follow-up PR that keeps your commits.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 29, 2026
<!-- copilot-assessment:v1 -->
### Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: `4b5901591c54bd76752e588ac5582a05707a3207`

| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 7.5/10 | ↑ PR devicetests
[1704250](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704250):
iOS controls General 1493 total, 0 failed; log 303 shows iPhone 11 Pro /
iOS 27.2 selected.<br>↑ Local simulator runs: 14 scoped tests red → fix
green → reverted red → restored green.<br>↓ One green CI run of an
intermittent failure; other device-test suites not run locally. |
| Diagnosis confidence | 6/10 | ↑ Locally, the iPhone Duo profile
reproduces the failures without any predecessor test.<br>↓ main's device
step does not log the selected profile, so no CI log shows that failing
builds 1704212/1704247 used iPhone Duo. |
| Evidence fit | 6/10 | ↑ The same 17-test cluster fails intermittently
on unrelated PRs with the main tree, consistent with nondeterministic
device selection.<br>↓ Local Duo runs used iOS 27.1 and standard-phone
runs iOS 26.0; CI uses iOS 27.2, so this isn't a same-runtime
comparison. |
<!-- /copilot-assessment -->

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

The apparent intermittent iOS General cascade is **simulator-profile
drift, not a demonstrated TabbedPage state leak**.

The native device-test migration prefers iPhone 11 Pro / iPhone 16 but
falls back to any compatible phone on the newest installed runtime. A
device-specific runtime supporting only **iPhone Duo** therefore
silently changes this standard-phone lane to an unfolded, regular-width
navigation environment. The More-tab and native back-button assumptions
no longer hold; the tab-bar layer-removal assertion and ScrollView
geometry assertion also fail.

Select the newest installed runtime **together with a supported
standard-phone profile**, retaining the existing iPhone 11 Pro / iPhone
16 preferences. Do not fall back to an arbitrary device profile.
Explicit version/major requests remain within their requested version
range; when no supported standard-phone profile exists, report a
provisioning error instead of substituting another OS.

Log and persist the runtime identifier, version, build, and device type
in `device.json`. No product code, test assertion, skip, or category
exclusion changes.

**Coverage boundary:** a device-specific Duo runtime is not a
replacement for standard-phone coverage. This does not add foldable
coverage; that needs a separately configured lane. For `latest`, the
selected standard-phone runtime can be older than an installed Duo-only
runtime.

#### CI evidence

Actual simulator logs in the General job's published `DeviceTests`
artifact show:

| Build | General job | Device | Runtime |
| --- | --- | --- | --- |
|
[1704247](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704247)
| Failed, 17 victims | iPhone Duo / iPhone19,4 | iOS 27.2 / 24B91016s |
|
[1704240](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704240)
| Passed | iPhone 11 Pro / iPhone12,3 | iOS 27.2 / 24B8117 |
|
[1704155](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704155)
| Passed on main | iPhone 11 Pro / iPhone12,3 | iOS 27.2 / 24B8117 |

Each has 1,493 `TEST_START` events with different randomized order. In
1704247, the first failure starts at 14:32:39 UTC:
`BarBackgroundTransitionRemovesGradientAndRestoresEffect(True)`, with
`ArgumentNullException: collection`. The root-replacement tests do not
begin until 14:40:12 UTC, so they cannot explain that first failure. The
raw test-step log is 749 for 1704247, 736 for 1704240, and 781 for
1704155. The previously reported build 1704212/log 727 was no longer
readable; no claims are made about its ordering.

Before implementation, searched open and recently merged PRs across all
bases for the test names, More-navigation mechanisms,
`Start-TestDevice`, device-specific runtime selection, and iPhone Duo.
Inspected #40656, #40755, and #40766. The open siblings
#40799/#40800/#40801/#40802/#40805/#40796 do not implement this native
standard-phone runtime/profile selection correction.

#### Local causal validation

All results below come from **fresh native MTP TRX**, verified by the
existing runner for exact class/method isolation. Only owned iOS
simulators were used.

| Phase | Profile / runtime | Passed | Failed |
| --- | --- | --- | --- |
| Original | Duo / iOS 27.1, 24A94232 | 0 | 14 |
| Fixed | iPhone 11 Pro / iOS 26.0, 23A343 | 14 | 0 |
| Fix reverted exactly to main | Duo / iOS 27.1, 24A94232 | 0 | 14 |
| Fix restored | iPhone 11 Pro / iOS 26.0, 23A343 | 14 | 0 |

The 14 scoped victims cover all six tab-gradient variants, all six
failing More-transition variants, ScrollView, and the base
NavigationPage back-button variant. They reproduce **without running any
potential leaking predecessor**. Local exception messages match the CI
cluster, including `collection`, missing native back button, absent
shared-element flight, premature push completion, and navigation
timeout.

Commands, all from an isolated worktree off `origin/main` at
`1344d16421`:

```bash
export DOTNET_ROOT=/Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-catalyst-cascade/.dotnet
export PATH="$DOTNET_ROOT:$PATH"
# This installed preview SDK packages mlaunch under tools/lib, while its default property points at tools/bin.
export MlaunchPath="$DOTNET_ROOT/packs/Microsoft.iOS.Sdk.net12.0_27.1/27.1.12089-net12-p1/tools/lib/mlaunch/mlaunch.app/Contents/MacOS/mlaunch"
export RelativeMlaunchPath=packs/Microsoft.iOS.Sdk.net12.0_27.1/27.1.12089-net12-p1/tools/lib/mlaunch/mlaunch.app/Contents/MacOS/mlaunch
```

Preparation — **passed**, zero warnings/errors:

```bash
dotnet build Microsoft.Maui.BuildTasks.slnf --disable-build-servers -v:q
```

Causal run command — original used `-iOSVersion 27.1`;
fixed/reverted/restored used `-iOSVersion latest`, which selects that
same Duo runtime with the original selector. Results are listed in the
table above:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 \
  -Project Controls -Platform ios -iOSVersion latest \
  -IncludeClasses 'Microsoft.Maui.DeviceTests.TabbedPageTests,Microsoft.Maui.DeviceTests.TabbedPageTests_TabbedViewHandler,Microsoft.Maui.DeviceTests.TabbedPageNavigationHandlerTests,Microsoft.Maui.DeviceTests.NavigationPageTests,Microsoft.Maui.DeviceTests.PageTransitionsTests,Microsoft.Maui.DeviceTests.ScrollViewTests' \
  -IncludeMethods 'BarBackgroundTransitionRemovesGradientAndRestoresEffect,NavigatingBackViaBackButtonFiresNavigatedEvent,MoreTabNavigationsCompleteAfterTheTransition,MoreTabUnanimatedPushIsRecordedForThePop,MoreTabSharedElementFliesFromTheOverflowRoot,TestContentHorizontalOptionsChanged' \
  -SkipXcodeVersionCheck -Timeout 00:10:00 -DotnetPath "$DOTNET_ROOT/dotnet" \
  -OutputDirectory artifacts/ios-cascade/cluster-restored
```

Final expanded verification includes the three remaining NavigationPage
handler variants — **17 passed / 0 failed / 0 skipped**, covering every
reported victim:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 \
  -Project Controls -Platform ios -iOSVersion latest \
  -IncludeClasses 'Microsoft.Maui.DeviceTests.TabbedPageTests,Microsoft.Maui.DeviceTests.TabbedPageTests_TabbedViewHandler,Microsoft.Maui.DeviceTests.TabbedPageNavigationHandlerTests,Microsoft.Maui.DeviceTests.NavigationPageTests,Microsoft.Maui.DeviceTests.NavigationPageNavigationHandlerTests,Microsoft.Maui.DeviceTests.NavigationPageTests_TabbedViewHandler,Microsoft.Maui.DeviceTests.NavigationPageTests_FlyoutViewHandler,Microsoft.Maui.DeviceTests.PageTransitionsTests,Microsoft.Maui.DeviceTests.ScrollViewTests' \
  -IncludeMethods 'BarBackgroundTransitionRemovesGradientAndRestoresEffect,NavigatingBackViaBackButtonFiresNavigatedEvent,MoreTabNavigationsCompleteAfterTheTransition,MoreTabUnanimatedPushIsRecordedForThePop,MoreTabSharedElementFliesFromTheOverflowRoot,TestContentHorizontalOptionsChanged' \
  -SkipXcodeVersionCheck -Timeout 00:10:00 -DotnetPath "$DOTNET_ROOT/dotnet" \
  -OutputDirectory artifacts/ios-cascade/full-cluster-final
```

Exact-version guard — **passed**: this real invocation rejects the
installed Duo-only 27.1 runtime with the expected provisioning error,
exit 1, without creating a simulator:

```bash
pwsh -NoProfile .github/skills/run-device-tests/scripts/Start-TestDevice.ps1 \
  -Platform ios -ApiVersion 27.1 \
  -ResultsDirectory artifacts/ios-cascade/exact-runtime-rejection \
  -DeviceDirectory artifacts/ios-cascade/exact-runtime-device
```

PowerShell parser validation and `git diff --check` — **passed**. No
pipeline unit/snapshot tests were added. The initial local launch
attempt did not run tests because of the preview SDK's missing
`tools/bin/mlaunch`; only subsequent runs using the explicit valid
launch path are counted. Full repository tests and PR CI have not been
run as validation evidence.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

The recurrent iOS Controls General cluster in the linked builds; no
unrelated issue-closing reference.

### Let AI finish this PR

- [ ] **Let the MAUI agent address review feedback and fix remaining
issues on this PR.** Maintainers still decide whether it is merged. For
PRs from forks, the agent opens a follow-up PR that keeps your commits.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it label Dec 1, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) label Dec 1, 2026
github-actions Bot and others added 2 commits December 1, 2026 00:57
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress and removed s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) labels Dec 1, 2026
@github-actions github-actions Bot added the s/autopilot-retrying maui-expert-autopilot: retrying a step that failed once label Dec 1, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Expert Review — No more findings

Reviewed commit ae38b11.

@github-actions github-actions Bot added s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run and removed s/autopilot-retrying maui-expert-autopilot: retrying a step that failed once s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Selected Tests

Result NOT QUEUED Platforms Android, iOS, MacCatalyst, Windows Tests 2 UI, 5 device Commit ae38b116


🧪 Test selection — click to expand
Suite Result Selected Build
UI tests ❌ not queued 2 of 77 categories —
Device tests ❌ not queued 5 of 105 units —
🧪 UI tests — Navigation, TabbedPage on Android, iOS, MacCatalyst, Windows

❌ Could not queue maui-pr-uitests: Azure Pipelines did not start maui-pr-uitests for the dispatch branch run-tests/pr40656-46559064034 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-uitests for the full suite.

GPT-6.2 Sol: Run TabbedPage and Navigation UI tests for the shared Issue21814 fixture and the Apple tab-selection and navigation-stack changes.
MAI Code 2: iOS-only TabbedPage More-menu lifecycle fix; runs TabbedPage and Navigation UI coverage on iOS.

🧪 Running — 2 categories on Android, iOS, MacCatalyst, Windows

Platform Categories
Android Navigation, TabbedPage
iOS Navigation, TabbedPage
MacCatalyst Navigation, TabbedPage
Windows Navigation, TabbedPage
🧪 Device tests — Controls.Modal, Controls.NavigationPage, Controls.TabbedPage, Core.NavigationPage +1 on iOS, MacCatalyst

❌ Could not queue maui-pr-devicetests: Azure Pipelines did not start maui-pr-devicetests for the dispatch branch run-devicetests/pr40656-46559064034 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-devicetests for the full suite.

GPT-6.2 Sol: Run targeted iOS and Mac Catalyst device tests for overflow tab selection and page appearance during navigation.
MAI Code 2: iOS TabbedPage More-menu selection fix; runs focused TabbedPage, NavigationPage, and Page device tests on iOS.

🧪 Running — 5 categories on iOS, MacCatalyst

Platform Categories
iOS Controls.Modal, Controls.NavigationPage, Controls.TabbedPage, Core.NavigationPage, Core.Page
MacCatalyst Controls.Modal, Controls.NavigationPage, Controls.TabbedPage, Core.Page
⏭️ Skipped — what neither suite runs

UI tests — 75 categories, 0 platforms

Categories not run: Accessibility, ActionSheet, ActivityIndicator, Animation, AppLinks, Border, BoxView, Brush, Button, CarouselView, CollectionView1, CollectionView2, CollectionView3, CollectionView4, CollectionView5, CollectionView6, CollectionView7, Cells, CheckBox, ContextActions, CustomRenderers, DatePicker, Dispatcher, DisplayAlert, DisplayPrompt, DragAndDrop, Entry, Editor, Effects, Essentials, FlyoutPage, Focus, Fonts, Frame, Gestures, GraphicsView, Image, ImageButton, IndicatorView, InputTransparent, IsEnabled, IsVisible, Label, Layout, Lifecycle, ManualReview, Maps, Page, Performance, Picker, ProgressBar, RadioButton, RefreshView, SafeAreaEdges, Shadow, ScrollView, SearchBar, Shape, Slider, SoftInput, Stepper, Switch, SwipeView, Shell1, Shell2, TableView, TimePicker, TitleView, ToolbarItem, Triggers, ViewBaseTests, VisualStateManager, Window, WebView, Material3

Each skipped platform and category is listed as a maui-pr-uitests (skipped) … status on this commit. Use /azp run maui-pr-uitests for the full suite.

Device tests — 100 categories, 2 platforms

Platforms not run: Android, Windows

Categories not run: Controls.Accessibility, Controls.Animations, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Page, Controls.PageTransitions, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml, Core.ActivityIndicator, Core.Animation, Core.Application, Core.Border, Core.BoxView, Core.Button, Core.CheckBox, Core.ContentView, Core.DatePicker, Core.Dispatcher, Core.Editor, Core.Element, Core.Entry, Core.FlowDirection, Core.FlyoutView, Core.Fonts, Core.Formatting, Core.Graphics, Core.GraphicsView, Core.Image, Core.ImageButton, Core.ImageSource, Core.IndicatorView, Core.Label, Core.Layout, Core.Lifecycle, Core.MauiContext, Core.Memory, Core.Picker, Core.ProgressBar, Core.RadioButton, Core.RefreshView, Core.ScrollView, Core.SearchBar, Core.ShapeView, Core.Slider, Core.Stepper, Core.SwipeView, Core.Switch, Core.TimePicker, Core.View, Core.WebView, Core.Window, Core.WindowOverlay, Graphics, Essentials, BlazorWebView

Each skipped platform and project is listed as a maui-pr-devicetests (skipped) … status on this commit. Use /azp run maui-pr-devicetests for the full suite.

🤖 Why these tests — AI rationale (GPT-6.2 Sol + MAI Code 2)

UI tests

Each model chose independently; every test that runs was selected by at least one of them.

Platform GPT-6.2 Sol MAI Code 2
Android TabbedPage, Navigation —
iOS TabbedPage, Navigation TabbedPage, Navigation
MacCatalyst TabbedPage, Navigation —
Windows TabbedPage, Navigation —

GPT-6.2 Sol — Run TabbedPage and Navigation UI tests for the shared Issue21814 fixture and the Apple tab-selection and navigation-stack changes.

  • Issue21814 changes the shared TabbedPage fixture on all four platforms; the new More tests are iOS-only.
  • Apple navigation appearance hooks can affect stack behavior; include Navigation.
  • No other UI categories or full run.

MAI Code 2 — iOS-only TabbedPage More-menu lifecycle fix; runs TabbedPage and Navigation UI coverage on iOS.

  • iOS-only TabbedPage rendering and PageViewController appearance hooks now synchronize More-menu selections and NavigatedTo lifecycle events.
  • Navigation is coupled because More tabs can own a NavigationPage, including preserving a pushed detail page.
  • Mac Catalyst, Android, and Windows are excluded because the change and added More-menu scenario are guarded to iOS phone UI; unrelated categories are excluded.

Device tests

Each model chose independently; every test that runs was selected by at least one of them.

Platform GPT-6.2 Sol MAI Code 2
Android — —
iOS Controls.TabbedPage, Controls.NavigationPage, Controls.Modal, Core.Page Controls.TabbedPage, Controls.NavigationPage, Core.NavigationPage, Core.Page
MacCatalyst Controls.TabbedPage, Controls.NavigationPage, Controls.Modal, Core.Page —
Windows — —

GPT-6.2 Sol — Run targeted iOS and Mac Catalyst device tests for overflow tab selection and page appearance during navigation.

  • Controls.TabbedPage covers the changed overflow selection and reattachment tests.
  • Controls.NavigationPage and Controls.Modal cover page reappearance after stack transitions and modal dismissal.
  • Core.Page covers the PageViewController callback; no non-Apple or full run.

MAI Code 2 — iOS TabbedPage More-menu selection fix; runs focused TabbedPage, NavigationPage, and Page device tests on iOS.

  • The iOS-only device tests explicitly target Controls.TabbedPage and exercise native More-row selection for plain and NavigationPage tabs.
  • Controls NavigationPage and Core NavigationPage are included because both compatibility and toolbar navigation controllers now report child appearance.
  • Core.Page covers the modified PageViewController lifecycle hook; Android, Windows, and Mac Catalyst are excluded because the More-menu behavior is iOS-phone-specific.

Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification.

@github-actions github-actions Bot added s/autopilot-waiting-for-maintainer-review MAUI Autopilot finished: expert review clean and tests passed; waiting for maintainer review and removed s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

MAUI Autopilot — Ready for maintainer review

Results
Expert review No more findings on ae38b11
Tests ⚠️ Could not run; re-run /review run-tests when CI is available
Review threads 2 resolved

@Dhivya-SF4094 Dhivya-SF4094 changed the title [WIP] [iOS] Fix OnNavigatedTo not called on iOS on tabs placed in the "More" section of a TabbedPage [iOS] Fix OnNavigatedTo not called on iOS on tabs placed in the "More" section of a TabbedPage Dec 2, 2026

This branch was previously deployed

1 inactive (outdated) deployment
copilot-pat-pool — 2a28fce0 Deployed Nov 26, 2026 by Dhivya-SF4094 via conclusion #3354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-tabbedpage TabbedPage community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration s/autopilot-waiting-for-maintainer-review MAUI Autopilot finished: expert review clean and tests passed; waiting for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OnNavigatedTo not called on iOS on tabs placed in the "More" section of a TabbedPage

4 participants