Skip to content

[iOS 26] Fix TabbedPage tab bar layout - #38659

Merged
kubaflo merged 3 commits into
dotnet:inflight/currentfrom
SyedAbdulAzeemSF4852:fix-38147
Oct 14, 2026
Merged

kubaflo merged 3 commits into
dotnet:inflight/currentfrom
SyedAbdulAzeemSF4852:fix-38147

Conversation

@SyedAbdulAzeemSF4852

@SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 commented Sep 18, 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

  • iOS Glass UI tabs show truncated text on initial load.

Root Cause

  • On iOS 26, applying both BarBackgroundColor and BarTextColor during the initial load does not immediately complete the tab bar layout. As a result, the tab labels may appear truncated.

Description of Change

  • Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call LayoutIfNeeded() on the tab bar when both barBackgroundColor and selectedBarTextColor are set on iOS 26+, preventing truncated tab titles.
  • Reference => UpdateTitleViewFrameForOrientation

Issues Fixed

Fixes #38147

Validated the behaviour in the following platforms

  • Windows
  • Android
  • iOS
  • Mac

Output

Before After
Before.mov
After.mov

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38659

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38659"

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 18, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 18, 2026
@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

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 Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review couldn't start: the pipeline branch improved-reviewer doesn't exist. Use --branch improved-reviewer (the current reviewer branch), or omit --branch to run on main. Valid platforms: android, ios, catalyst, windows (e.g. /review android --branch improved-reviewer).

@github-actions github-actions Bot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 18, 2026
@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 Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15379560 is running for ios.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

MauiBot

This comment was marked as outdated.

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) 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) and removed s/agent-review-in-progress AI review is currently running for this PR labels Sep 18, 2026
@kubaflo

kubaflo commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

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

@MauiBot MauiBot removed s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-review-in-progress AI review is currently running for this PR labels Oct 8, 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).

@sheiksyedm
sheiksyedm marked this pull request as ready for review October 14, 2026 05:25
Copilot AI balanced review requested due to automatic review settings October 14, 2026 05:25

Copilot AI 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.

🟡 Changes recommended

The test runs on unintended platforms, lacks robust async visual synchronization, and the production guard’s MacCatalyst scope is unresolved.

2 open findings
What changed in this PR

Fixes initially truncated iOS 26 TabbedPage tab labels by forcing tab-bar layout after applying colors.

Changes:

  • Calls LayoutIfNeeded() for iOS 26 tab bars with configured colors.
  • Adds an issue-specific visual UI test.
File Description
TabbedViewExtensions.cs Forces tab-bar layout on iOS 26.
Issue38147.cs (HostApp) Adds the tabbed-page reproduction.
Issue38147.cs (UI tests) Adds screenshot regression coverage.

🧠 Review effort: Balanced

Comment on lines +1 to +2
using NUnit.Framework;
using UITest.Appium;
tabBar.StandardAppearance = tabBar.ScrollEdgeAppearance = _tabBarAppearance;

// Applying both colors requires an immediate layout on iOS 26 to avoid initially truncated tab titles.
if (OperatingSystem.IsIOSVersionAtLeast(26) && barBackgroundColor is not null && selectedBarTextColor is not null)
@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 Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15682296 is running for ios.

The s/agent-review-in-progress label stays on this PR through the full pipeline. The final AI Summary and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Expert Review — 1 findings

See inline comments for details.

tabBar.StandardAppearance = tabBar.ScrollEdgeAppearance = _tabBarAppearance;

// Applying both colors requires an immediate layout on iOS 26 to avoid initially truncated tab titles.
if (OperatingSystem.IsIOSVersionAtLeast(26) && barBackgroundColor is not null && selectedBarTextColor is not null)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔍 AI-Generated Review (multi-model)

[major] Logic and Correctness — The iOS 26 layout guard keys off raw selectedBarTextColor input instead of the effective selected title color already computed above. Concrete scenario: barBackgroundColor is set and selectedBarTextColor is null while defaultBarTextColor supplies the selected title color; tab appearance still applies both colors, but this guard skips LayoutIfNeeded(), so the initial truncation path remains unhandled for that input shape.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI Review Summary

@SyedAbdulAzeemSF4852 — new AI review results are available based on commit a6dd9fa.

Gate Passed Confidence Low Platform iOS


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

Gate Result: ✅ PASSED

Platform: IOS · Base: main · Merge base: f16eb798

Test Without Fix (expect FAIL) With Fix (expect PASS)
🖥️ Issue38147 Issue38147 ✅ FAIL — 288s ✅ PASS — 100s
🔴 Without fix — 🖥️ Issue38147: FAIL ✅ · 288s

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

     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 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38147.VerifyTabBarItemsAreProperlyAligned() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38147.cs:line 20
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
🟢 With fix — 🖥️ Issue38147: PASS ✅ · 100s

(no coded error found; showing last 1200 chars)

arting 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.13)
[xUnit.net 00:00:00.05]   Discovering: Controls.TestCases.iOS.Tests
[xUnit.net 00:00:00.15]   Discovered:  Controls.TestCases.iOS.Tests
NUnit Adapter 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 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 10/14/2026 3:50:32 AM FixtureSetup for Issue38147(iOS)
>>>>> 10/14/2026 3:50:35 AM VerifyTabBarItemsAreProperlyAligned Start
>>>>> 10/14/2026 3:50:36 AM VerifyTabBarItemsAreProperlyAligned Stop
  Passed VerifyTabBarItemsAreProperlyAligned [302 ms]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /Users/cloudtest/vss/_work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue38147.trx
Test Run Successful.
Total tests: 1
     Passed: 1
 Total time: 18.5238 Seconds
>>> TRX_RESULT_FILE: /Users/cloudtest/vss/_work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue38147.trx
📁 Fix files reverted (1 files)
  • src/Core/src/Platform/iOS/TabbedViewExtensions.cs

📋 Pre-Flight — Context & Validation

Pre-Flight Context

Scope and evidence: This is limited pre-flight context, not an exhaustive review. The supplied immutable diff is the authoritative submitted change. Repository code search located the matching pre-change TabbedViewExtensions.cs blob (a30c7bbf552ad…), but the read-only PR, issue, and full-file endpoints failed with a transport error. Consequently, PR title/body, author, status, base/head refs, discussion, reviews, and the body/comments of #38147 are unknown, not absent. Binary snapshot contents could not be inspected.

Reported problem

The submitted test metadata describes #38147 as “iOS Glass UI bottom tabs are not properly aligned.” The production-code comment narrows the claimed symptom to tab titles being initially truncated on iOS 26 when both tab-bar background and selected-text colors are applied. The available evidence does not establish exact devices, reproduction steps, expected geometry, frequency, or whether the symptom occurs after subsequent layouts.

Changed files and mechanism

The diff contains eight files:

  • src/Core/src/Platform/iOS/TabbedViewExtensions.cs
  • Host-app reproduction: src/Controls/tests/TestCases.HostApp/Issues/Issue38147.cs
  • Shared Appium screenshot test: src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38147.cs
  • New Android, Mac, WinUI, generic iOS, and ios-26 screenshot baselines.

The reproduction creates a two-item TabbedPage, explicitly setting BarTextColor and BarBackgroundColor; both tabs have titles and icons. The test waits for the first page’s HomeTabLabel and immediately calls VerifyScreenshot(), so validation is visual and targets initial presentation rather than interaction or navigation.

In TabbedViewExtensions.cs, after the existing _tabBarAppearance is assigned to both StandardAppearance and ScrollEdgeAppearance, the patch calls tabBar.LayoutIfNeeded() only when:

  • the runtime is iOS 26 or newer;
  • barBackgroundColor is non-null; and
  • selectedBarTextColor is non-null.

Indexed pre-change source confirms that this method builds/configures a UITabBarAppearance, derives effective selected and unselected colors, and updates selected title/icon appearance. The new layout therefore occurs after appearance assignment. It tests the original nullable inputs rather than their computed effective/default colors.

Platform-sensitive paths

  • The functional branch is runtime-gated to iOS 26+ through OperatingSystem.IsIOSVersionAtLeast(26).
  • iOS versions below 26 and calls missing either explicit background or selected-text color retain existing behavior.
  • The synchronous UIKit layout occurs during appearance/color updating; call sites, lifecycle timing, and threading context could not be established from the unavailable full immutable source.
  • The test method carries only the TabbedPage category; its issue registration marks iOS as affected, while snapshots are supplied for Android, Mac, Windows, generic iOS, and iOS 26.
  • Indexed test infrastructure confirms a distinct ios-26 screenshot environment exists, but the complete condition selecting that environment was unavailable.
  • Mac behavior remains unchanged by the explicit iOS runtime check, although a Mac visual baseline is included.

Validation requirements and supplied result

The requested validation platform is iOS. Relevant validation should exercise initial rendering with both colors explicitly configured, particularly on iOS 26, and compare title/icon alignment and truncation against the ios-26 baseline. Generic iOS coverage remains relevant for the unchanged pre-26 path; the additional non-iOS baselines indicate cross-platform screenshot expectations even though the reported defect is iOS-specific.

The supplied Gate result is accepted without rerunning: Gate passed — the test fails without the fix and passes with the fix. The exact iOS version, simulator/device, screenshot delta, logs, and whether generic iOS and all non-iOS baselines were included in that Gate run are unknown.

Remaining uncertainties

  • Full issue and PR narratives, discussion, review state, and linked evidence.
  • The actual before/after pixels and whether “alignment” means truncation, vertical positioning, horizontal centering, or multiple effects.
  • Whether configurations using an implicit/default selected-text color can exhibit the issue; such calls do not enter the new branch.
  • Whether repeated color updates, dynamic appearance changes, rotation, accessibility text sizes, more tabs, or selected/unselected transitions require equivalent layout handling.
  • All callers of this extension and whether immediate layout can introduce re-entrant layout or measurable rendering cost.
  • Why baselines were added for every desktop/mobile test target and whether each was independently generated and validated.

🔬 Code Review — Deep Analysis

Expert Evaluation — PR #38659

Verdict: NEEDS_CHANGES
Confidence: low

Independent Assessment

The submitted fix assigns the updated UITabBarAppearance and then forces an immediate layout on iOS 26 when explicit background and selected-text colors are present. This is directionally appropriate for an initial-render truncation defect, and the trusted Gate establishes that the added screenshot test fails without the submitted fix and passes with it.

Finding

❌ Error — The layout workaround does not cover an effective default selected-text color

src/Core/src/Platform/iOS/TabbedViewExtensions.cs:124 gates LayoutIfNeeded() on the raw nullable selectedBarTextColor argument. Earlier in the same method, however, effectiveSelectedBarTextColor falls back to defaultBarTextColor and is applied to every selected tab-bar layout appearance. When barBackgroundColor is explicit, selectedBarTextColor is null, and defaultBarTextColor is non-null, both effective colors are still applied but the iOS 26 layout workaround is skipped. That source-traced input shape leaves the reported initial truncation mechanism unresolved.

The raw inline finding was persisted to inline-findings.json before refinement.

Applicable Review Dimensions

Dimension Result
Logic and Correctness Blocking defect above
Regression Prevention The added test covers explicit BarTextColor, but not the default-color fallback path
iOS/MacCatalyst Platform Specifics Runtime behavior is restricted to iOS 26+; no new MacCatalyst behavior
Performance-Critical Path One synchronous layout call under a narrow runtime/value guard; no separate defect found
Memory Leak Prevention No new subscription or retained state
Safe Area No safe-area behavior changed
Complexity Reduction No separate defect found

Blast Radius and Failure-Mode Probes

  • Scope: UITabBar appearance updates during initial/page rendering; no new static or shared state.
  • Explicit selected text and background colors: the workaround runs.
  • Default selected text plus explicit background color: the effective selected color is applied, but the workaround does not run.
  • Pre-iOS 26: behavior remains unchanged.
  • Lifecycle/threading: no new asynchronous work or subscription lifecycle was introduced.

Prior Review and Validation Evidence

No independently verified unresolved prior error-level finding overrides this assessment. The trusted Gate is PASSED and was not rerun. Required-check classification remains undetermined in this environment, so confidence is capped at low; this does not weaken the concrete source-backed finding.

Refinement Threshold

Met. The guard mismatch is concrete, actionable, line-specific, and backed by the method's effective-color data flow. A single refinement should key the layout decision to the effective colors and add focused coverage for the fallback input shape.


🛠️ Try-Fix — Analysis & Comparison

Alternative generation: not requested

Evidence-first mode intentionally omits routine Try-Fix attempts. This is not a failed
attempt, a completed alternative search, or evidence that alternatives have no value.
The expert review may still produce one evidence-backed PR refinement.


🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Phase Status

Phase Status Notes
Pre-Flight ✅ COMPLETE Trusted evidence-first context consumed
Code Review NEEDS_CHANGES (low) 1 error, 0 warnings
Gate ✅ PASSED iOS; submitted PR fails without the fix and passes with it
Try-Fix NOT REQUESTED Alternative generation: not requested; no attempts or inferred exhaustion
Refinement ⚠️ VALIDATION BLOCKED pr-plus-reviewer implemented; candidate-local SDK setup failed before the focused test
Report ✅ COMPLETE

Code Review and Candidate Comparison

Candidate Expert finding Validation Assessment
pr ❌ Unresolved: layout is gated on raw explicit colors rather than the effective colors applied by the method ✅ Trusted Gate passed for the submitted explicit-color scenario Demonstrates the reported scenario but leaves a source-traced default-color path unfixed
pr-plus-reviewer ✅ Changes the guard to effectiveBarColor and effectiveSelectedBarTextColor ⚠️ Blocked during candidate-local SDK bootstrap; the focused iOS test did not run Best source-level candidate, but not demonstrated merge-ready

Selected Fix: pr-plus-reviewer. It is the only real refinement and directly addresses the expert's concrete defect while retaining the submitted path. Because it is not in the submitted PR and its isolated validation was blocked, the submitted PR requires changes and the refinement still requires candidate-built validation before merge.

Summary

The submitted fix has strong evidence for its tested explicit-color scenario: the trusted iOS Gate fails without the fix and passes with it. Approval is nevertheless vetoed by the expert's blocking correctness finding. The implemented refinement is preferred over the raw PR because it aligns the workaround condition with the values the method actually applies, but its validation setup failed before test execution.

Root Cause

UpdateiOS15TabBarAppearance computes and applies fallback colors through effectiveBarColor and effectiveSelectedBarTextColor, while the new iOS 26 LayoutIfNeeded() guard checks barBackgroundColor and selectedBarTextColor. As a result, a non-null default selected-text color can be applied with a background color without triggering the layout required to prevent initial title truncation.

Fix Quality

The submitted change is narrow, platform-gated, and proven for the reported explicit-color reproduction. The refinement is a one-line correction that uses existing computed values and introduces no API or lifecycle changes. Its source reasoning is stronger than the raw guard, but isolated validation is missing because prerequisite setup was blocked; no merge-readiness claim is made.


📱 UI Tests — TabbedPage,ViewBaseTests

Detected UI test categories: TabbedPage,ViewBaseTests

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

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
TabbedPage 47/52 (5 skipped) ✓ —
ViewBaseTests 112/112 ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

🧭 Next Steps — reviewer changes required

The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.

Why: The implemented refinement addresses the expert's source-backed default-color gap while preserving the submitted explicit-color behavior. It wins on correctness, but candidate-local setup failed before validation, so the submitted PR requires the refinement and a successful isolated test run.

Address the actionable findings in this review before merging.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 14, 2026
@kubaflo
kubaflo changed the base branch from main to inflight/current October 14, 2026 12:37
@kubaflo
kubaflo merged commit 982bb3a into dotnet:inflight/current Oct 14, 2026
23 of 42 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Oct 14, 2026
kubaflo pushed a commit that referenced this pull request Oct 14, 2026
<!-- 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!

### Issue Details
- iOS Glass UI tabs show truncated text on initial load.

### Root Cause
- On iOS 26, applying both BarBackgroundColor and BarTextColor during
the initial load does not immediately complete the tab bar layout. As a
result, the tab labels may appear truncated.

### Description of Change
- Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call
LayoutIfNeeded() on the tab bar when both barBackgroundColor and
selectedBarTextColor are set on iOS 26+, preventing truncated tab
titles.
- Reference =>
[UpdateTitleViewFrameForOrientation](https://github.com/dotnet/maui/blob/828569a86489228dc66a7867173635a6fb4f27be/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L383-L404)

### Issues Fixed
Fixes #38147

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/aae83a3e-7398-4a5f-abbb-5087c89dcc1e">
| <video
src="https://github.com/user-attachments/assets/a80e11ba-8c1e-41da-9216-4a452eaedea6">
|
kubaflo pushed a commit that referenced this pull request Oct 18, 2026
<!-- 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!

### Issue Details
- iOS Glass UI tabs show truncated text on initial load.

### Root Cause
- On iOS 26, applying both BarBackgroundColor and BarTextColor during
the initial load does not immediately complete the tab bar layout. As a
result, the tab labels may appear truncated.

### Description of Change
- Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call
LayoutIfNeeded() on the tab bar when both barBackgroundColor and
selectedBarTextColor are set on iOS 26+, preventing truncated tab
titles.
- Reference =>
[UpdateTitleViewFrameForOrientation](https://github.com/dotnet/maui/blob/828569a86489228dc66a7867173635a6fb4f27be/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L383-L404)

### Issues Fixed
Fixes #38147

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/aae83a3e-7398-4a5f-abbb-5087c89dcc1e">
| <video
src="https://github.com/user-attachments/assets/a80e11ba-8c1e-41da-9216-4a452eaedea6">
|
kubaflo pushed a commit that referenced this pull request Oct 21, 2026
<!-- 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!

### Issue Details
- iOS Glass UI tabs show truncated text on initial load.

### Root Cause
- On iOS 26, applying both BarBackgroundColor and BarTextColor during
the initial load does not immediately complete the tab bar layout. As a
result, the tab labels may appear truncated.

### Description of Change
- Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call
LayoutIfNeeded() on the tab bar when both barBackgroundColor and
selectedBarTextColor are set on iOS 26+, preventing truncated tab
titles.
- Reference =>
[UpdateTitleViewFrameForOrientation](https://github.com/dotnet/maui/blob/828569a86489228dc66a7867173635a6fb4f27be/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L383-L404)

### Issues Fixed
Fixes #38147

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/aae83a3e-7398-4a5f-abbb-5087c89dcc1e">
| <video
src="https://github.com/user-attachments/assets/a80e11ba-8c1e-41da-9216-4a452eaedea6">
|
kubaflo pushed a commit that referenced this pull request Oct 25, 2026
<!-- 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!

### Issue Details
- iOS Glass UI tabs show truncated text on initial load.

### Root Cause
- On iOS 26, applying both BarBackgroundColor and BarTextColor during
the initial load does not immediately complete the tab bar layout. As a
result, the tab labels may appear truncated.

### Description of Change
- Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call
LayoutIfNeeded() on the tab bar when both barBackgroundColor and
selectedBarTextColor are set on iOS 26+, preventing truncated tab
titles.
- Reference =>
[UpdateTitleViewFrameForOrientation](https://github.com/dotnet/maui/blob/828569a86489228dc66a7867173635a6fb4f27be/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L383-L404)

### Issues Fixed
Fixes #38147

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/aae83a3e-7398-4a5f-abbb-5087c89dcc1e">
| <video
src="https://github.com/user-attachments/assets/a80e11ba-8c1e-41da-9216-4a452eaedea6">
|
kubaflo pushed a commit that referenced this pull request Oct 26, 2026
<!-- 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!

### Issue Details
- iOS Glass UI tabs show truncated text on initial load.

### Root Cause
- On iOS 26, applying both BarBackgroundColor and BarTextColor during
the initial load does not immediately complete the tab bar layout. As a
result, the tab labels may appear truncated.

### Description of Change
- Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call
LayoutIfNeeded() on the tab bar when both barBackgroundColor and
selectedBarTextColor are set on iOS 26+, preventing truncated tab
titles.
- Reference =>
[UpdateTitleViewFrameForOrientation](https://github.com/dotnet/maui/blob/828569a86489228dc66a7867173635a6fb4f27be/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L383-L404)

### Issues Fixed
Fixes #38147

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/aae83a3e-7398-4a5f-abbb-5087c89dcc1e">
| <video
src="https://github.com/user-attachments/assets/a80e11ba-8c1e-41da-9216-4a452eaedea6">
|
github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026
<!-- 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!

### Issue Details
- iOS Glass UI tabs show truncated text on initial load.

### Root Cause
- On iOS 26, applying both BarBackgroundColor and BarTextColor during
the initial load does not immediately complete the tab bar layout. As a
result, the tab labels may appear truncated.

### Description of Change
- Updated UpdateiOS15TabBarAppearance in TabbedViewExtensions.cs to call
LayoutIfNeeded() on the tab bar when both barBackgroundColor and
selectedBarTextColor are set on iOS 26+, preventing truncated tab
titles.
- Reference =>
[UpdateTitleViewFrameForOrientation](https://github.com/dotnet/maui/blob/828569a86489228dc66a7867173635a6fb4f27be/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L383-L404)

### Issues Fixed
Fixes #38147

### Validated the behaviour in the following platforms
- [ ] Windows
- [ ] Android
- [x] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/aae83a3e-7398-4a5f-abbb-5087c89dcc1e">
| <video
src="https://github.com/user-attachments/assets/a80e11ba-8c1e-41da-9216-4a452eaedea6">
|
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-tabbedpage TabbedPage community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios s/agent-changes-requested AI agent recommends changes - found a better alternative or issues 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) version/iOS-26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS Glass UI bottom tabs show truncated labels

7 participants