Skip to content

Fix Picker layout on Mac Catalyst 26+#33146

Merged
kubaflo merged 2 commits intodotnet:inflight/currentfrom
kubaflo:picker-maccatalyst
Mar 4, 2026
Merged

Fix Picker layout on Mac Catalyst 26+#33146
kubaflo merged 2 commits intodotnet:inflight/currentfrom
kubaflo:picker-maccatalyst

Conversation

@kubaflo
Copy link
Copy Markdown
Contributor

@kubaflo kubaflo commented Dec 12, 2025

On Mac Catalyst 26+, the Picker view was incorrectly positioned, appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the pickerController’s view. This ensures correct alignment, predictable sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes #33229

Before After

Copilot AI review requested due to automatic review settings December 12, 2025 23:39
@kubaflo kubaflo self-assigned this Dec 12, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Dec 12, 2025
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a layout issue with the Picker view on Mac Catalyst 26+ where the UIPickerView was incorrectly positioned within the picker controller. The fix centers the UIPickerView using NSLayoutConstraint instead of relying solely on frame-based layout, ensuring correct alignment and consistent behavior across Mac Catalyst versions.

Key Changes:

  • Replaces frame-based layout with Auto Layout constraints for UIPickerView positioning
  • Ensures the picker view is centered horizontally and properly sized within the alert controller
  • Maintains backward compatibility while fixing the layout issue on Mac Catalyst 26+

@PureWeen PureWeen added the p/0 Current heighest priority issues that we are targeting for a release. label Dec 30, 2025
@PureWeen PureWeen added this to the .NET 10.0 SR3 milestone Dec 30, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing Dec 30, 2025
@PureWeen PureWeen modified the milestones: .NET 10.0 SR3, .NET 10.0 SR4 Jan 21, 2026
@sheiksyedm sheiksyedm modified the milestones: .NET 10.0 SR4, .NET 10 SR5 Feb 13, 2026
Copy link
Copy Markdown
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

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

Build issue: pickerController on line 87 should be _pickerController (missing underscore). There is no local variable named pickerController in this method — only the field _pickerController. This will fail to compile on MacCatalyst.

Minor suggestion: Since the new constraints fully define the picker's layout, the initial frame passed to new UIPickerView(frame) on line 53 is now effectively ignored. Consider simplifying to new UIPickerView() to make it clear constraints drive the layout.

@github-project-automation github-project-automation bot moved this from Ready To Review to Changes Requested in MAUI SDK Ongoing Feb 23, 2026
PickerView is now centered and sized using NSLayoutConstraint when added to the pickerController's view. This ensures proper alignment and sizing, improving layout consistency.
Remove the unused RectangleF (CGRect) using and eliminate the explicit frame/RectangleF variable for UIPickerView in PickerHandler.iOS. The code now instantiates UIPickerView with the default constructor, then sets its Model and reloads components. This simplifies the code and removes the unnecessary CoreGraphics alias and frame creation.
@kubaflo
Copy link
Copy Markdown
Contributor Author

kubaflo commented Mar 3, 2026

🤖 AI Summary

📊 Expand Full Review
🔍 Pre-Flight — Context & Validation
📝 Review SessionRemove explicit frame use for UIPickerView · 7ce058a

Issue: #33229 - [MacOS 26] Text on picker options are not centered on macOS 26.1
PR: #33146 - Fix Picker layout on Mac Catalyst 26+
Author: kubaflo
Platforms Affected: Mac Catalyst (macOS 26+ / iOS 26 SDK), labeled platform/macos, version/iOS-26
Milestone: .NET 10 SR5

Summary

On Mac Catalyst 26+, the UIPickerView inside the UIAlertController used for the Mac Catalyst Picker implementation was incorrectly positioned. The old code used frame-based layout with a hardcoded x=0 and width=269, causing the picker to appear left-aligned when the alert controller's view was wider. The fix replaces frame-based positioning with Auto Layout (NSLayoutConstraint) to properly center and size the picker.

Files Changed

File Type Changes
src/Core/src/Handlers/Picker/PickerHandler.iOS.cs Fix +12, -3

No test files changed.

Key Technical Changes

  1. Removed using RectangleF = CoreGraphics.CGRect; alias (no longer needed)
    new UIPickerView() (no frame)
  2. Added TranslatesAutoresizingMaskIntoConstraints = false
  3. Added NSLayoutConstraint array: CenterX, Width (container), Top (paddingTitle offset), Height (240)

Reviewer Feedback

Reviewer Commit Feedback Status
copilot-pull-request-reviewer[bot] f718cd0 COMMENTED: Overview of fix, no blockers Informational
build failure; (2) Suggest new UIPickerView() Addressed in latest commit

Note: PureWeen's review was on commit 81abfc96. Current HEAD is 7ce058a0. Both concerns have been addressed: _pickerController is used correctly, and new UIPickerView() is used without frame. PureWeen has not re-reviewed after the fix.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #33146 Replace frame-based UIPickerView layout with NSLayoutConstraint (CenterX, Width=container, Top=paddingTitle, Height= PENDING (Gate) PickerHandler.iOS.cs (+12) Original PR; addresses Mac Catalyst 26+ positioning regression 240)

Edge Cases Noted

  • Fix uses WidthAnchor.ConstraintEqualTo(container. makes picker full container width. This changes behavior on ALL Mac Catalyst versions, not just 26+. On macOS 15, old code worked (269px width, x=0). Need to verify regression risk on older Mac Catalyst.WidthAnchor)
  • No automated tests included in PR.

🚦 Gate — Test Verification
📝 Review SessionRemove explicit frame use for UIPickerView · 7ce058a

** FAILED - No automated tests exist for this issueResult:**
Platform Requested: ios (user-specified)
Actual Affected Platform: Mac Catalyst (macOS #if MACCATALYST code path26+)
Mode: N/ Could not runA

Gate Failure Reason

No automated tests exist for Issue #33229. The PR does not include any test files:

gh pr view 33146 --json files --jq '.files[].path' | grep -E "TestCases|UnitTests|DeviceTests"
 (no output)
  • No issue-specific test in TestCases.HostApp/Issues/
  • No NUnit test in TestCases.Shared.Tests/Tests/Issues/
  • No snapshot test added to TestCases.Mac.Tests/

Platform Mismatch

User requested ios platform, but the bug lives entirely in the #if MACCATALYST code block in PickerHandler.iOS.cs. Tests run on iOS simulators would not exercise this code path. Correct platform would be maccatalyst.

Autonomous Decision

Per SHARED-RULES.md autonomous execution guidance:
Document as FAILED, proceed to Report

  • Try-fix phase: SKIPPED (Gate did not pass; no test baseline exists to verify fix)

Tests Needed

To properly validate this fix, a UI test should be written:

  • HostApp page: Open the Picker on Mac Catalyst, verify picker options are centered
  • Test: Take screenshot of open picker on Mac Catalyst 26+, compare against baseline
  • Suggested tool: Use write-tests-agent to create Issue33229 test

🔧 Fix — Analysis & Comparison
📝 Review SessionRemove explicit frame use for UIPickerView · 7ce058a

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #33146 Replace frame-based UIPickerView layout with PENDING (Gate not passed) PickerHandler.iOS.cs (+12) Original PR NSLayoutConstraint

Exhausted: SKIPPED (Gate did not pass; no tests exist to validate any fix)No

Selected Fix: PR's fix (by only candidate reviewed; no empirical try-fix possible without tests)default

Skip Reason

Try-fix phase was skipped because Gate did not pass. Gate requires automated tests to:

  1. Verify tests FAIL without the fix
  2. Verify tests PASS with the fix

Without tests, try-fix cannot empirically validate any fix candidate. All 5 model invocations were skipped.

Code Review Assessment of PR Fix

Despite not being able to run try-fix empirically, a code review assessment of the PR's fix:

Correct approach: Auto Layout (NSLayoutConstraint) is the right solution for Mac Catalyst 26+ where frame-based layout behavior changed.

Constraints added:

Potential concern: Width = container width changes behavior on all Mac Catalyst versions (not just 26+). On macOS 15, the old 269pt hardcoded width worked. The container width may differ. However, filling the container width is generally correct Auto Layout behavior.

PureWeen's feedback addressed:

  • _pickerController (with underscore) used correctly in latest commit
  • new UIPickerView() (without frame) used in latest commit

📋 Report — Final Recommendation
📝 Review SessionRemove explicit frame use for UIPickerView · 7ce058a

Final Recommendation: REQUEST CHANGES##

Summary

PR #33146 fixes a real regression in the Mac Catalyst Picker where UIPickerView options appeared left-aligned (not centered) on macOS 26+. The fix replaces a hardcoded frame-based layout (x=0, width=269) with NSLayoutConstraint-based Auto Layout, which correctly centers and sizes the picker within the alert controller's view.

The fix is technically sound and addresses PureWeen's prior review feedback (build-breaking missing underscore on _pickerController, and the unused frame constructor). However, the PR is missing automated a notable gap for a regression fix on a platform-specific code path.tests

Root Cause

On Mac Catalyst 26+, the UIAlertController view geometry changed, making the hardcoded CGRect(x: 0, paddingTitle, width: 269, height: 240) no longer produce a centered layout. When the alert container grew wider, the picker stayed at x=0 and appeared left-aligned.

Fix Quality Assessment

Aspect Assessment
Fix approach (Auto Layout NSLayoutConstraint is the right solution for Mac Catalyst 26+ Correct )
PureWeens blockers addressed Both build issue and simplification suggestion fixed
Constraint correctness Fully defines position + size (CenterX, Width, Top, Height)
Backward Changes behavior on all Mac Catalyst versions, not just 26+ (see below) compatibility
Test No automated regression has no safety net tests coverage

Platform Scope Note

The constraints change behavior on all Mac Catalyst (not just 26+). Previously on macOS 15, the 269pt wide picker worked. Now the picker fills the container width. This should be fine (full width is better than arbitrary 269pt) but it's an untested behavior change on older Mac Catalyst.

Reviewer Feedback Status

Reviewer Status Details
_pickerController) + simplification (new UIPickerView())
Latest commit Addressed Both concerns fixed in commit ` re-review needed from PureWeen

Request Changes Rationale

  1. Missing Regression fix with no automated test coverage. If Mac Catalyst layout behavior changes again, there's nothing to catch it. A UI test or snapshot test should be added.tests
  2. PureWeen's CHANGES_REQUESTED not The technical issues were fixed, but PureWeen hasn't re-reviewed. The PR needs a fresh approval after the fixes.dismissed
  3. PR description missing NOTE Required by repository template.block

Suggested PR Title Update

Current: Fix Picker layout on Mac Catalyst 26+
Suggested: [MacCatalyst] Picker: Fix UIPickerView centering on macOS 26+

Gate Result

No automated tests exist for Issue #33229. Tests could not be run.FAILED

Try-Fix

Gate did not pass. No test baseline for empirical validation.SKIPPED


📋 Expand PR Finalization Review
Title: ✅ Good

Current: Fix Picker layout on Mac Catalyst 26+

Description: ✅ Good

Description needs updates. See details below.

✨ Suggested PR Description

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

Root Cause

On Mac Catalyst 26+, the UIAlertController's container view dimensions changed such that a UIPickerView initialized with a hardcoded frame (x=0, y=paddingTitle, width=269, height=240) appeared left-aligned instead of centered. The fixed x=0 origin and width=269 no longer matched the wider alert controller container geometry introduced in macOS 26.

Description of Change

Replaced frame-based UIPickerView initialization with frameless construction (new UIPickerView()) and explicit NSLayoutConstraint Auto Layout constraints:

  • CenterX aligned to the picker controller's view center
  • Width equal to the full container width (replaces hardcoded 269px)
  • Top offset by paddingTitle from the container top (preserves title padding behavior)
  • Height set to 240pt

Also removed the now-unused using RectangleF = CoreGraphics.CGRect; alias.

All changes are scoped to the #if MACCATALYST code no impact on iOS behavior.path

Before / After

Before After

Issues Fixed

Fixes #33229

Code Review: ✅ Passed

Code PR #33146Review

File reviewed: src/Core/src/Handlers/Picker/PickerHandler.iOS.cs
no iOS impact.


Looks Good

  • TranslatesAutoresizingMaskIntoConstraints = false is correctly set before activating required when mixing AddSubview with Auto Layout.constraints
  • UIPickerView() (no-frame init) is the correct approach when Auto Layout will drive the layout.
  • Constraints fully define position and no ambiguous layout:size
    • Horizontal: CenterXAnchor + WidthAnchor (over-constrained but not conflicting)
    • Vertical: TopAnchor offset + HeightAnchor
  • paddingTitle correctly preserved as the TopAnchor offset maintains title padding behavior.constant
  • pickerHeight (240) correctly reused for both the view's HeightAnchor constraint and the existing container height constraint below.
  • using RectangleF = CoreGraphics.CGRect; alias correctly it was only used for the old frame constructor.removed
  • Width change from hardcoded 269px to container.WidthAnchor is picker now adapts to the container, which is the correct behavior.appropriate

1. Trailing whitespace

Line: immediately after _pickerController.View.AddSubview(pickerView);

The diff shows a blank line with trailing tab whitespace (\t\t\t\t\t). This is cosmetic but may fail the repo's formatting lint check.

Recommendation: Remove the trailing whitespace from that blank line.


2. Redundant null-conditional operator

Line:

pickerView?.ReloadAllComponents();

pickerView was assigned two lines earlier as new UIPickerView() and cannot be null at this point. The ?. is unnecessary.

Recommendation: Change to pickerView.ReloadAllComponents(); for clarity. (The ?. appeared in the original code before the fix when pickerView might have been nullable, but now it's always non-null here.)


3. Constraint API inconsistency (pre-existing)

The new constraints use the modern NSLayoutConstraint.ActivateConstraints([...]) API, but the existing container height constraint below uses the older AddConstraint(height) pattern. The PR doesn't need to fix pre-existing code, but this is worth noting for future cleanup.

4. No automated test coverage

The fix addresses a visual regression (picker options not centered on Mac Catalyst 26+) with no accompanying automated test. UI tests for Mac Catalyst Picker centering would help prevent regressions. This is a gap, not a blocker, as visual layout issues are difficult to test automatically.


Overall Verdict

The fix is technically correct. Auto Layout constraints are the right approach for Mac Catalyst 26+ where frame-based layout behavior changed. The two minor issues (trailing whitespace, redundant null-conditional) are cosmetic and non-blocking.


@PureWeen PureWeen removed this from the .NET 10 SR5 milestone Mar 3, 2026
@PureWeen PureWeen added this to the .NET 10 SR6 milestone Mar 3, 2026
@kubaflo kubaflo changed the base branch from main to inflight/current March 4, 2026 23:57
@kubaflo kubaflo merged commit 0fc5ca0 into dotnet:inflight/current Mar 4, 2026
27 checks passed
@github-project-automation github-project-automation bot moved this from Changes Requested to Done in MAUI SDK Ongoing Mar 4, 2026
PureWeen pushed a commit that referenced this pull request Mar 11, 2026
On Mac Catalyst 26+, the Picker view was incorrectly positioned,
appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the
pickerController’s view. This ensures correct alignment, predictable
sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes #33229

|Before|After|
|--|--|
|<img
src="https://github.com/user-attachments/assets/d55949ec-3f78-4836-a18c-778e240f2a1f"
width="300px"/>|<img
src="https://github.com/user-attachments/assets/7fb709ba-b1cd-490e-b093-7dd79f48ea08"
width="300px"/>|
github-actions bot pushed a commit that referenced this pull request Mar 11, 2026
On Mac Catalyst 26+, the Picker view was incorrectly positioned,
appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the
pickerController’s view. This ensures correct alignment, predictable
sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes #33229

|Before|After|
|--|--|
|<img
src="https://github.com/user-attachments/assets/d55949ec-3f78-4836-a18c-778e240f2a1f"
width="300px"/>|<img
src="https://github.com/user-attachments/assets/7fb709ba-b1cd-490e-b093-7dd79f48ea08"
width="300px"/>|
@PureWeen PureWeen mentioned this pull request Mar 17, 2026
PureWeen pushed a commit that referenced this pull request Mar 19, 2026
On Mac Catalyst 26+, the Picker view was incorrectly positioned,
appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the
pickerController’s view. This ensures correct alignment, predictable
sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes #33229

|Before|After|
|--|--|
|<img
src="https://github.com/user-attachments/assets/d55949ec-3f78-4836-a18c-778e240f2a1f"
width="300px"/>|<img
src="https://github.com/user-attachments/assets/7fb709ba-b1cd-490e-b093-7dd79f48ea08"
width="300px"/>|
github-actions bot pushed a commit that referenced this pull request Mar 20, 2026
On Mac Catalyst 26+, the Picker view was incorrectly positioned,
appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the
pickerController’s view. This ensures correct alignment, predictable
sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes #33229

|Before|After|
|--|--|
|<img
src="https://github.com/user-attachments/assets/d55949ec-3f78-4836-a18c-778e240f2a1f"
width="300px"/>|<img
src="https://github.com/user-attachments/assets/7fb709ba-b1cd-490e-b093-7dd79f48ea08"
width="300px"/>|
github-actions bot pushed a commit that referenced this pull request Mar 22, 2026
On Mac Catalyst 26+, the Picker view was incorrectly positioned,
appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the
pickerController’s view. This ensures correct alignment, predictable
sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes #33229

|Before|After|
|--|--|
|<img
src="https://github.com/user-attachments/assets/d55949ec-3f78-4836-a18c-778e240f2a1f"
width="300px"/>|<img
src="https://github.com/user-attachments/assets/7fb709ba-b1cd-490e-b093-7dd79f48ea08"
width="300px"/>|
PureWeen added a commit that referenced this pull request Mar 24, 2026
## What's Coming

.NET MAUI inflight/candidate introduces significant improvements across
all platforms with focus on quality, performance, and developer
experience. This release includes 66 commits with various improvements,
bug fixes, and enhancements.


## Activityindicator
- [Android] Implemented material3 support for ActivityIndicator by
@Dhivya-SF4094 in #33481
  <details>
  <summary>🔧 Fixes</summary>

- [Implement material3 support for
ActivityIndicator](#33479)
  </details>

- [iOS] Fix: ActivityIndicator IsRunning ignores IsVisible when set to
true by @bhavanesh2001 in #28983
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] [ActivityIndicator] `IsRunning` ignores `IsVisible` when set to
`true`](#28968)
  </details>

## Button
- [iOS] Button RTL text and image overlap - fix by @kubaflo in
#29041

## Checkbox
- [iOS/MacCatalyst] Fix CheckBox foreground color not resetting when set
to null by @Ahamed-Ali in #34284
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Color of the checkBox control is not properly worked on dynamic
scenarios](#34278)
  </details>

## CollectionView
- [iOS] Fix: CollectionView does not clear selection when SelectedItem
is set to null by @Tamilarasan-Paranthaman in
#30420
  <details>
  <summary>🔧 Fixes</summary>

- [CollectionView not being able to remove selected item highlight on
iOS](#30363)
- [[MAUI] Select items traces are
preserved](#26187)
  </details>

- [iOS] CV2 ItemsLayout update by @kubaflo in
#28675
  <details>
  <summary>🔧 Fixes</summary>

- [CollectionView CollectionViewHandler2 doesnt change ItemsLayout on
DataTrigger](#28656)
- [iOS CollectionView doesn't respect a change to ItemsLayout when using
Items2.CollectionViewHandler2](#31259)
  </details>

- [iOS][CV2] Fix CollectionView renders large empty space at bottom of
view by @devanathan-vaithiyanathan in
#31215
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] [MacCatalyst] CollectionView renders large empty space at
bottom of view](#17799)
- [[iOS/Mac] CollectionView2 EmptyView takes up large horizontal space
even when the content is
small](#33201)
  </details>

- [iOS] Fixed issue where group Header/Footer template was set to all
items when IsGrouped was true for an ObservableCollection by
@Tamilarasan-Paranthaman in #29144
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Group Header/Footer Repeated for All Items When IsGrouped is
True for ObservableCollection in
CollectionView](#29141)
  </details>

- [Android] Fix CollectionView selection crash with HeaderTemplate by
@NirmalKumarYuvaraj in #34275
  <details>
  <summary>🔧 Fixes</summary>

- [[Bug] [Android] System.ArgumentOutOfRangeException: Index was out of
range. Must be non-negative and less than the size of the collection.
Parameter name: index](#34247)
  </details>

## DateTimePicker
- [iOS] Fix TimePicker AM/PM frequently changes when the app is closed
and reopened by @devanathan-vaithiyanathan in
#31066
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] TimePicker AM/PM frequently changes when the app is closed and
reopened](#30837)
- [Maui 10 iOS TimePicker Strange Characters in place of
AM/PM](#33722)
  </details>

- Android TimePicker ignores 24 hour system setting when using Format
Property - fix by @kubaflo in #28797
  <details>
  <summary>🔧 Fixes</summary>

- [Android TimePicker ignores 24 hour system setting when using Format
Property](#28784)
  </details>

## Drawing
- [iOS, Mac, Windows] GraphicsView: Fix Background/BackgroundColor not
updating by @NirmalKumarYuvaraj in
#31254
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS, Mac, Windows] GraphicsView does not change the
Background/BackgroundColor](#31239)
  </details>

- [iOS] GraphicsView DrawString - fix by @kubaflo in
#26304
  <details>
  <summary>🔧 Fixes</summary>

- [DrawString not rendering in
iOS.](#24450)
- [GraphicsView DrawString not rendering in
iOS](#8486)
- [DrawString doesn't work on
maccatalyst](#4993)
  </details>

- [Android] - Fix Shadow Rendering For Transparent Fill, Stroke (Lines),
and Text on Shapes by @prakashKannanSf3972 in
#29528
  <details>
  <summary>🔧 Fixes</summary>

- [Ellipse Transparency Not Rendered When Drawing Arc Inside the Ellipse
Using GraphicsView on
Android](#29394)
  </details>

- Revert "[iOS, Mac, Windows] GraphicsView: Fix
Background/BackgroundColor not updating (#31254)" by @Ahamed-Ali via
@Copilot in #34508

## Entry
- [iOS 26] Fix Entry MaxLength not enforced due to new multi-range
delegate by @kubaflo in #32045
  <details>
  <summary>🔧 Fixes</summary>

- [iOS 26 - The MaxLength property value is not respected on an Entry
control.](#32016)
- [.NET MAUI Entry Maximum Length not working on iOS and
macOS](#33316)
  </details>

- [iOS] Fixed Entry with IsPassword toggling loses previously entered
text by @SubhikshaSf4851 in #30572
  <details>
  <summary>🔧 Fixes</summary>

- [Entry with IsPassword toggling loses previously entered text on iOS
when IsPassword is
re-enabled](#30085)
  </details>

## Essentials
- Fix for FilePicker PickMultipleAsync nullable reference type by
@SuthiYuvaraj in #33163
  <details>
  <summary>🔧 Fixes</summary>

- [FilePicker PickMultipleAsync nullable reference
type](#33114)
  </details>

- Replace deprecated NetworkReachability with NWPathMonitor on iOS/macOS
by @jfversluis via @Copilot in #32354
  <details>
  <summary>🔧 Fixes</summary>

- [NetworkReachability is obsolete on iOS/maccatalyst
17.4+](#32312)
- [Use NWPathMonitor on iOS for Essentials
Connectivity](#2574)
  </details>

## Essentials Connectivity
- Update Android Connectivity implementation to use modern APIs by
@jfversluis via @Copilot in #30348
  <details>
  <summary>🔧 Fixes</summary>

- [Update the Android Connectivity implementation to user modern
APIs](#30347)
  </details>

## Flyout
- [iOS] Fixed Flyout icon not updating when root page changes using
InsertPageBefore by @Vignesh-SF3580 in
#29924
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Flyout icon not replaced by back button when root page is
changed using
InsertPageBefore](#29921)
  </details>

## Flyoutpage
- [iOS] Flyout Items Not Displayed in RightToLeft FlowDirection in
Landscape - fix by @kubaflo in #26762
  <details>
  <summary>🔧 Fixes</summary>

- [Flyout Items Not Displayed in RightToLeft FlowDirection on iOS in
Landscape Orientation and Hamburger Icon Positioned
Incorrectly](#26726)
  </details>

## Image
- [Android] Implemented Material3 support for Image by @Dhivya-SF4094 in
#33661
  <details>
  <summary>🔧 Fixes</summary>

- [Implement Material3 support for
Image](#33660)
  </details>

## Keyboard
- [iOS] Fix gap at top of view after rotating device while Entry
keyboard is visible by @praveenkumarkarunanithi in
#34328
  <details>
  <summary>🔧 Fixes</summary>

- [Focusing and entering texts on entry control causes a gap at the top
after rotating simulator.](#33407)
  </details>

## Label
- [Android] Support for images inside HTML label by @kubaflo in
#21679
  <details>
  <summary>🔧 Fixes</summary>

- [Label with HTML TextType does not display images on
Android](#21044)
  </details>

- [fix] ContentLabel Moved to a nested class to prevent CS0122 in
external source generators by @SubhikshaSf4851 in
#34514
  <details>
  <summary>🔧 Fixes</summary>

- [[MAUI] Building Maui App with sample content results CS0122
errors.](#34512)
  </details>

## Layout
- Optimize ordering of children in Flex layout by @symbiogenesis in
#21961

- [Android] Fix control size properties not available during Loaded
event by @Vignesh-SF3580 in #31590
  <details>
  <summary>🔧 Fixes</summary>

- [CollectionView on Android does not provide height, width, logical
children once loaded, works fine on
Windows](#14364)
- [Control's Loaded event invokes before calling its measure override
method.](#14160)
  </details>

## Mediapicker
- [iOS/Android] MediaPicker: Fix image orientation when RotateImage=true
by @michalpobuta in #33892
  <details>
  <summary>🔧 Fixes</summary>

- [MediaPicker.PickPhotosAsync does not preserve image
orientation](#32650)
  </details>

## Modal
- [Windows] Fix modal page keyboard focus not shifting to newly opened
modal by @jfversluis in #34212
  <details>
  <summary>🔧 Fixes</summary>

- [Keyboard focus does not shift to a newly opened modal page: Pressing
enter clicks the button on the page beneath the modal
page](#22938)
  </details>

## Navigation
- [iOS26] Apply view margins in title view by @kubaflo in
#32205
  <details>
  <summary>🔧 Fixes</summary>

- [NavigationPage TitleView iOS
26](#32200)
  </details>

- [iOS] System.NullReferenceException at
NavigationRenderer.SetStatusBarStyle() by @kubaflo in
#29564
  <details>
  <summary>🔧 Fixes</summary>

- [System.NullReferenceException at
NavigationRenderer.SetStatusBarStyle()](#29535)
  </details>

- [iOS 26] Fix back button color not applied for NavigationPage by
@Shalini-Ashokan in #34326
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Color not applied to the Back button text or image on iOS
26](#33966)
  </details>

## Picker
- Fix Picker layout on Mac Catalyst 26+ by @kubaflo in
#33146
  <details>
  <summary>🔧 Fixes</summary>

- [[MacOS 26] Text on picker options are not centered on macOS
26.1](#33229)
  </details>

## Progressbar
- [Android] Implemented Material3 support for ProgressBar by
@SyedAbdulAzeemSF4852 in #33926
  <details>
  <summary>🔧 Fixes</summary>

- [Implement Material3 support for
Progressbar](#33925)
  </details>

## RadioButton
- [iOS, Mac] Fix for RadioButton TextColor for plain Content not working
by @HarishwaranVijayakumar in #31940
  <details>
  <summary>🔧 Fixes</summary>

- [RadioButton: TextColor for plain Content not working on
iOS](#18011)
  </details>

- [All Platforms] Fix RadioButton warning when ControlTemplate is set
with View content by @kubaflo in
#33839
  <details>
  <summary>🔧 Fixes</summary>

- [Seeking clarification on RadioButton + ControlTemplate + Content
documentation](#33829)
  </details>

- Visual state change for disabled RadioButton by @kubaflo in
#23471
  <details>
  <summary>🔧 Fixes</summary>

- [RadioButton disabled UI issue -
iOS](#18668)
  </details>

## SafeArea
- [Android] Fix for TabbedPage BottomNavigation BarBackgroundColor not
extending to system navigation bar by @praveenkumarkarunanithi in
#33428
  <details>
  <summary>🔧 Fixes</summary>

- [[Android] TabbedPage BottomNavigation BarBackgroundColor does not
extend to system navigation bar area in Edge-to-Edge
mode](#33344)
  </details>

## ScrollView
- [Android] ScrollView: Fix HorizontalScrollBarVisibility not updating
immediately at runtime by @SubhikshaSf4851 in
#33528
  <details>
  <summary>🔧 Fixes</summary>

- [Runtime Scrollbar visibility not updating correctly on Android and
macOS platforms.](#33400)
  </details>

- Fixed crash when calling ItemsView.ScrollTo on unloaded CollectionView
by @kubaflo in #25444
  <details>
  <summary>🔧 Fixes</summary>

- [App crashes when calling ItemsView.ScrollTo on unloaded
CollectionView](#23014)
  </details>

## Shell
- [Shell] Update logic for iOS large title display in ShellItemRenderer
by @kubaflo in #33246

- [iOS][Shell] Fix navigation lifecycle and back button for More tab (>5
tabs) by @kubaflo in #27932
  <details>
  <summary>🔧 Fixes</summary>

- [OnAppearing and OnNavigatedTo does not work when using extended
Tabbar (tabbar with more than 5 tabs) on
IOS.](#27799)
- [Shell.BackButtonBehavior does not work when using extended Tabbar
(tabbar with more than 5 tabs)on
IOS.](#27800)
- [Shell TabBar More button causes ViewModel command binding
disconnection on back
navigation](#30862)
- [Content page onappearing not firing if tabs are on the more tab on
IOS](#31166)
  </details>

- [iOS 26] Fix tab bar ghosting when navigating from modal to tabbed
Shell content by @SubhikshaSf4851 in
#34254
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] Tab bar ghosting issue on iOS 26 (liquid
glass)](#34143)
  </details>

- Fix for Shell tab visibility not updating when navigating back
multiple pages by @BagavathiPerumal in
#34403
  <details>
  <summary>🔧 Fixes</summary>

- [Changing Shell Tab Visibility when navigating back multiple pages
ignores Shell Tab
Visibility](#33351)
  </details>

- [iOS/Mac] Fixed OnBackButtonPressed not firing for Shell Navigation
Bar Button by @Dhivya-SF4094 in
#34401
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] OnBackButtonPressed not firing for Shell Navigation Bar
button](#34190)
  </details>

## Slider
- [iOS] Fix for Slider ThumbImageSource is not centered properly on iOS
26 by @HarishwaranVijayakumar in
#34019
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS 26] Slider ThumbImageSource is not centered
properly](#33967)
  </details>

- [Android] Fix improper rendering of ThumbimageSource in Slider by
@NirmalKumarYuvaraj in #34064
  <details>
  <summary>🔧 Fixes</summary>

- [[Slider] MAUI Slider thumb image is big on
android](#13258)
  </details>

## Stepper
- [iOS] Fix Stepper layout overlap in landscape on iOS 26 by
@Vignesh-SF3580 in #34325
  <details>
  <summary>🔧 Fixes</summary>

- [[.NET10] D10 - Customize cursor position - Rotating simulator makes
the button and label
overlap](#34273)
  </details>

## SwipeView
- [iOS] SwipeView: Honor FontImageSource.Color in SwipeItem icon by
@kubaflo in #27389
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS] SwipeView: SwipeItem.IconImageSource.FontImageSource color
value not honored](#27377)
  </details>

## Switch
- [Android] Fix Switch thumb shadow missing when ThumbColor is set by
@Shalini-Ashokan in #33960
  <details>
  <summary>🔧 Fixes</summary>

- [Android Switch Control Thumb
Shadow](#19676)
  </details>

## Toolbar
- [iOS/Mac Catalyst 26] Fix Shell.ForegroundColor not applied to
ToolbarItems by @SyedAbdulAzeemSF4852 in
#34085
  <details>
  <summary>🔧 Fixes</summary>

- [[iOS26] Shell.ForegroundColor is not applied to
ToolbarItems](#34083)
  </details>

- [Android] VoiceOver on Toolbar Item by @kubaflo in
#29596
  <details>
  <summary>🔧 Fixes</summary>

- [VoiceOver on Toolbar
Item](#29573)
- [SemanticProperties do not work on
ToolbarItems](#23623)
  </details>


<details>
<summary>🧪 Testing (11)</summary>

- [Testing] Additional Feature Matrix Test Cases for CollectionView by
@TamilarasanSF4853 in #32432
- [Testing] Feature Matrix UITest Cases for VisualStateManager by
@LogishaSelvarajSF4525 in #34146
- [Testing] Feature Matrix UITest Cases for Clip by @TamilarasanSF4853
in #34121
- [Testing] Feature matrix UITest Cases for Map Control by
@HarishKumarSF4517 in #31656
- [Testing] Feature matrix UITest Cases for Visual Transform Control by
@HarishKumarSF4517 in #32799
- [Testing] Feature Matrix UITest Cases for Shell Pages by
@NafeelaNazhir in #33945
- [Testing] Feature Matrix UITest Cases for Triggers by
@HarishKumarSF4517 in #34152
- [Testing] Refactoring Feature Matrix UITest Cases for CheckBox Control
by @LogishaSelvarajSF4525 in #34283
- Resolve UI test Build Sample failures - Candidate March 16 by
@Ahamed-Ali in #34442
- Fix the failures in the Candidate branch- March 16 by @Ahamed-Ali in
#34453
  <details>
  <summary>🔧 Fixes</summary>

  - [March 16th, Candidate](#34437)
  </details>
- Fixed the iOS 18.5 Candidate failures (March 16,2026) by @Ahamed-Ali
in #34593
  <details>
  <summary>🔧 Fixes</summary>

  - [March 16th, Candidate](#34437)
  </details>

</details>

<details>
<summary>📦 Other (2)</summary>

- Fixed candidate test failures caused by PR #33428. by @Ahamed-Ali in
#34515
  <details>
  <summary>🔧 Fixes</summary>

- [[.NET10] On Android, there's a big space at the top for I, M and N2 &
N3](#34509)
  </details>
- Revert "[iOS] Button RTL text and image overlap - fix (#29041)" in
b0497af

</details>

<details>
<summary>📝 Issue References</summary>

Fixes #2574, Fixes #4993, Fixes #8486, Fixes #13258, Fixes #14160, Fixes
#14364, Fixes #17799, Fixes #18011, Fixes #18668, Fixes #19676, Fixes
#21044, Fixes #22938, Fixes #23014, Fixes #23623, Fixes #24450, Fixes
#26187, Fixes #26726, Fixes #27377, Fixes #27799, Fixes #27800, Fixes
#28656, Fixes #28784, Fixes #28968, Fixes #29141, Fixes #29394, Fixes
#29535, Fixes #29573, Fixes #29921, Fixes #30085, Fixes #30347, Fixes
#30363, Fixes #30837, Fixes #30862, Fixes #31166, Fixes #31239, Fixes
#31259, Fixes #32016, Fixes #32200, Fixes #32312, Fixes #32650, Fixes
#33114, Fixes #33201, Fixes #33229, Fixes #33316, Fixes #33344, Fixes
#33351, Fixes #33400, Fixes #33407, Fixes #33479, Fixes #33660, Fixes
#33722, Fixes #33829, Fixes #33925, Fixes #33966, Fixes #33967, Fixes
#34083, Fixes #34143, Fixes #34190, Fixes #34247, Fixes #34273, Fixes
#34278, Fixes #34437, Fixes #34509, Fixes #34512

</details>

**Full Changelog**:
main...inflight/candidate
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Mar 30, 2026
On Mac Catalyst 26+, the Picker view was incorrectly positioned,
appearing visually shifted within the picker controller.
This PR centers UIPickerView using NSLayoutConstraint when added to the
pickerController’s view. This ensures correct alignment, predictable
sizing, and consistent layout behavior across Mac Catalyst versions.

Fixes dotnet#33229

|Before|After|
|--|--|
|<img
src="https://github.com/user-attachments/assets/d55949ec-3f78-4836-a18c-778e240f2a1f"
width="300px"/>|<img
src="https://github.com/user-attachments/assets/7fb709ba-b1cd-490e-b093-7dd79f48ea08"
width="300px"/>|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-picker Picker p/0 Current heighest priority issues that we are targeting for a release. platform/macos macOS / Mac Catalyst version/iOS-26

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[MacOS 26] Text on picker options are not centered on macOS 26.1

4 participants