Skip to content

[inflight/candidate] Backport iOS Shell More re-evaluation fix (#39264) - #39320

Merged
kubaflo merged 1 commit into
inflight/candidatefrom
kubaflo-candidate-shell-backport
Oct 12, 2026
Merged

kubaflo merged 1 commit into
inflight/candidatefrom
kubaflo-candidate-shell-backport

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 12, 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!

Description of Change

This intentionally targets inflight/candidate, rather than the template's generic main target, as an explicitly requested Candidate servicing backport.

Backports only the nine added lines in src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs from #39264, source commit e0eb61af616187a56f2b0df0f7ea65826420747e (parent f3c581a6879e6b284a0ed97607e2b2d4b8328429). The unrelated issue-triage scripts, workflows, documentation, and eng/Versions.props changes in that commit are deliberately excluded.

Calls base.TraitCollectionDidChange(previousTraitCollection) before the existing vertical-size-class early return so UIKit recomputes tabs/More on fold/unfold, then clears CustomizableViewControllers when nonempty to prevent an Edit button. Source comments and behavior are preserved exactly; the Shell-file stable patch ID is 8d5cea33df9281ce8f773a1d8ad4a47305de244e for both source and backport.

Validation (build-only, no GUI or runtime execution):

  • dotnet format whitespace src/Controls/src/Core/Controls.Core.csproj --no-restore --include src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs --verbosity quiet — passed.
  • dotnet build Microsoft.Maui.BuildTasks.slnf --no-restore -v:q — failed initially with NETSDK1004 because this fresh worktree had no restored assets; the default CLI selected SDK 11.0.100-preview.6.26359.118.
  • dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build Microsoft.Maui.BuildTasks.slnf -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -v:q — passed after restore, 0 warnings / 0 errors.
  • dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build src/Controls/src/Core/Controls.Core.csproj -f net10.0-ios26.0 -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -v:q — passed, 0 warnings / 0 errors.
  • git diff --check — passed.
  • git diff -- src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs | git patch-id --stable and git diff e0eb61af616187a56f2b0df0f7ea65826420747e^ e0eb61af616187a56f2b0df0f7ea65826420747e -- src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs | git patch-id --stable — identical patch IDs before commit.

Local builds used installed SDK 10.0.100, not the repository's pinned servicing SDK 10.0.113-servicing.26454.107; no tracked SDK/dependency versions were changed. Runtime fold-state tests were not run. No new automated test is added: the existing infrastructure cannot change fold state, as documented by the source PR. No XCTest, Appium, simulator boot/launch, or MacCatalyst app execution was used.

Issues Fixed

Fixes #39263

Carry only the ShellItemRenderer.cs change from e0eb61a. Preserve UIKit tab recomputation and disable More customization. Fixes #39263.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 12, 2026 10:20 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 12, 2026 10:21 — with GitHub Actions Inactive
@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.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 12, 2026 10:21 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 12, 2026 10:23 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 12, 2026 10:25 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 12, 2026 10:25 — with GitHub Actions Inactive
@kubaflo
kubaflo merged commit 3b2513c into inflight/candidate Oct 12, 2026
11 of 19 checks passed
@kubaflo
kubaflo deleted the kubaflo-candidate-shell-backport branch October 12, 2026 10:48
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Oct 12, 2026
kubaflo added a commit that referenced this pull request Oct 13, 2026
… (#39320)

<!-- 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!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

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

This intentionally targets **inflight/candidate**, rather than the
template's generic main target, as an explicitly requested Candidate
servicing backport.

Backports only the nine added lines in
`src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs`
from #39264, source commit `e0eb61af616187a56f2b0df0f7ea65826420747e`
(parent `f3c581a6879e6b284a0ed97607e2b2d4b8328429`). The unrelated
issue-triage scripts, workflows, documentation, and `eng/Versions.props`
changes in that commit are deliberately excluded.

Calls `base.TraitCollectionDidChange(previousTraitCollection)` before
the existing vertical-size-class early return so UIKit recomputes
tabs/More on fold/unfold, then clears `CustomizableViewControllers` when
nonempty to prevent an Edit button. Source comments and behavior are
preserved exactly; the Shell-file stable patch ID is
`8d5cea33df9281ce8f773a1d8ad4a47305de244e` for both source and backport.

**Validation (build-only, no GUI or runtime execution):**

- `dotnet format whitespace src/Controls/src/Core/Controls.Core.csproj
--no-restore --include
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
--verbosity quiet` — passed.
- `dotnet build Microsoft.Maui.BuildTasks.slnf --no-restore -v:q` —
failed initially with `NETSDK1004` because this fresh worktree had no
restored assets; the default CLI selected SDK
`11.0.100-preview.6.26359.118`.
- `dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build
Microsoft.Maui.BuildTasks.slnf -p:IncludeAndroidTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeIosTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false
-p:IncludeTizenTargetFrameworks=false
-p:IncludeWindowsTargetFrameworks=false -v:q` — passed after restore, 0
warnings / 0 errors.
- `dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build
src/Controls/src/Core/Controls.Core.csproj -f net10.0-ios26.0
-p:IncludeAndroidTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false
-p:IncludeTizenTargetFrameworks=false
-p:IncludeWindowsTargetFrameworks=false -v:q` — passed, 0 warnings / 0
errors.
- `git diff --check` — passed.
- `git diff --
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
| git patch-id --stable` and `git diff
e0eb61a^
e0eb61a --
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
| git patch-id --stable` — identical patch IDs before commit.

Local builds used installed SDK 10.0.100, **not** the repository's
pinned servicing SDK `10.0.113-servicing.26454.107`; no tracked
SDK/dependency versions were changed. Runtime fold-state tests were
**not run**. No new automated test is added: the existing infrastructure
cannot change fold state, as documented by the source PR. No XCTest,
Appium, simulator boot/launch, or MacCatalyst app execution was used.

### 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. -->

Fixes #39263

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 14, 2026
… (#39320)

<!-- 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!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

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

This intentionally targets **inflight/candidate**, rather than the
template's generic main target, as an explicitly requested Candidate
servicing backport.

Backports only the nine added lines in
`src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs`
from #39264, source commit `e0eb61af616187a56f2b0df0f7ea65826420747e`
(parent `f3c581a6879e6b284a0ed97607e2b2d4b8328429`). The unrelated
issue-triage scripts, workflows, documentation, and `eng/Versions.props`
changes in that commit are deliberately excluded.

Calls `base.TraitCollectionDidChange(previousTraitCollection)` before
the existing vertical-size-class early return so UIKit recomputes
tabs/More on fold/unfold, then clears `CustomizableViewControllers` when
nonempty to prevent an Edit button. Source comments and behavior are
preserved exactly; the Shell-file stable patch ID is
`8d5cea33df9281ce8f773a1d8ad4a47305de244e` for both source and backport.

**Validation (build-only, no GUI or runtime execution):**

- `dotnet format whitespace src/Controls/src/Core/Controls.Core.csproj
--no-restore --include
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
--verbosity quiet` — passed.
- `dotnet build Microsoft.Maui.BuildTasks.slnf --no-restore -v:q` —
failed initially with `NETSDK1004` because this fresh worktree had no
restored assets; the default CLI selected SDK
`11.0.100-preview.6.26359.118`.
- `dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build
Microsoft.Maui.BuildTasks.slnf -p:IncludeAndroidTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeIosTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false
-p:IncludeTizenTargetFrameworks=false
-p:IncludeWindowsTargetFrameworks=false -v:q` — passed after restore, 0
warnings / 0 errors.
- `dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build
src/Controls/src/Core/Controls.Core.csproj -f net10.0-ios26.0
-p:IncludeAndroidTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false
-p:IncludeTizenTargetFrameworks=false
-p:IncludeWindowsTargetFrameworks=false -v:q` — passed, 0 warnings / 0
errors.
- `git diff --check` — passed.
- `git diff --
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
| git patch-id --stable` and `git diff
e0eb61a^
e0eb61a --
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
| git patch-id --stable` — identical patch IDs before commit.

Local builds used installed SDK 10.0.100, **not** the repository's
pinned servicing SDK `10.0.113-servicing.26454.107`; no tracked
SDK/dependency versions were changed. Runtime fold-state tests were
**not run**. No new automated test is added: the existing infrastructure
cannot change fold state, as documented by the source PR. No XCTest,
Appium, simulator boot/launch, or MacCatalyst app execution was used.

### 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. -->

Fixes #39263

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 18, 2026
… (#39320)

<!-- 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!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

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

This intentionally targets **inflight/candidate**, rather than the
template's generic main target, as an explicitly requested Candidate
servicing backport.

Backports only the nine added lines in
`src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs`
from #39264, source commit `e0eb61af616187a56f2b0df0f7ea65826420747e`
(parent `f3c581a6879e6b284a0ed97607e2b2d4b8328429`). The unrelated
issue-triage scripts, workflows, documentation, and `eng/Versions.props`
changes in that commit are deliberately excluded.

Calls `base.TraitCollectionDidChange(previousTraitCollection)` before
the existing vertical-size-class early return so UIKit recomputes
tabs/More on fold/unfold, then clears `CustomizableViewControllers` when
nonempty to prevent an Edit button. Source comments and behavior are
preserved exactly; the Shell-file stable patch ID is
`8d5cea33df9281ce8f773a1d8ad4a47305de244e` for both source and backport.

**Validation (build-only, no GUI or runtime execution):**

- `dotnet format whitespace src/Controls/src/Core/Controls.Core.csproj
--no-restore --include
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
--verbosity quiet` — passed.
- `dotnet build Microsoft.Maui.BuildTasks.slnf --no-restore -v:q` —
failed initially with `NETSDK1004` because this fresh worktree had no
restored assets; the default CLI selected SDK
`11.0.100-preview.6.26359.118`.
- `dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build
Microsoft.Maui.BuildTasks.slnf -p:IncludeAndroidTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeIosTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false
-p:IncludeTizenTargetFrameworks=false
-p:IncludeWindowsTargetFrameworks=false -v:q` — passed after restore, 0
warnings / 0 errors.
- `dotnet /usr/local/share/dotnet/sdk/10.0.100/dotnet.dll build
src/Controls/src/Core/Controls.Core.csproj -f net10.0-ios26.0
-p:IncludeAndroidTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false
-p:IncludeTizenTargetFrameworks=false
-p:IncludeWindowsTargetFrameworks=false -v:q` — passed, 0 warnings / 0
errors.
- `git diff --check` — passed.
- `git diff --
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
| git patch-id --stable` and `git diff
e0eb61a^
e0eb61a --
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
| git patch-id --stable` — identical patch IDs before commit.

Local builds used installed SDK 10.0.100, **not** the repository's
pinned servicing SDK `10.0.113-servicing.26454.107`; no tracked
SDK/dependency versions were changed. Runtime fold-state tests were
**not run**. No new automated test is added: the existing infrastructure
cannot change fold state, as documented by the source PR. No XCTest,
Appium, simulator boot/launch, or MacCatalyst app execution was used.

### 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. -->

Fixes #39263

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 992cd625 Deployed Oct 12, 2026 by kubaflo via conclusion #2312
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant