Skip to content

[iOS 26] Fixed Placeholder text of SearchHandler is not displayed#34016

Draft
Dhivya-SF4094 wants to merge 2 commits intodotnet:mainfrom
Dhivya-SF4094:fix-33972
Draft

[iOS 26] Fixed Placeholder text of SearchHandler is not displayed#34016
Dhivya-SF4094 wants to merge 2 commits intodotnet:mainfrom
Dhivya-SF4094:fix-33972

Conversation

@Dhivya-SF4094
Copy link
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

Shell.SearchHandler has a placeholder with a background color and SearchBarVisibility set to Expanded, the placeholder text is not shown on iOS 26.

Root Cause

  • The issue was caused by the implementation of the UpdateSearchBarBackgroundColor method in SearchHandlerAppearanceTracker.cs. Styling was applied to an internal nested subview (textField.Subviews[0]) instead of directly modifying the UITextField.
  • At the same time, the BackgroundColor property was also set on the UITextField itself. This resulted in a double-layer rendering problem where both the internal subview and the UITextField had background styling applied.
  • Because of these overlapping layers, visual inconsistencies occurred, including incorrect corner radius rendering and placeholder text being partially obscured.

Description of Change

The fix removes dependency on internal subviews and directly styles the UITextField.

  • Corner radius and background color are applied directly to the UITextField.
  • Only a single background layer is used, eliminating the overlapping rendering issue.
  • When the background is cleared, corner radius and clipping are reset properly.
  • _hasCustomBackground is correctly managed.

Validated the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Issues Fixed:

Fixes #33972

Screenshots

Before  After 
     

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios shell-search-handler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS 26] Placeholder text of SearchHandler is not displaying properly

3 participants