iOS: cannot set the PlatformView.BarTintColor for the SearchBar #17254
Labels
area-controls-entry
Entry
custom-handler
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Trying to achieve a transparent SearchBar background on iOS by using the SearchBarHandler Mapper.
![image](https://private-user-images.githubusercontent.com/58006892/266362563-f5613930-104d-4db3-85a7-6ccb285ff319.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1MTcxNzQsIm5iZiI6MTcyNTUxNjg3NCwicGF0aCI6Ii81ODAwNjg5Mi8yNjYzNjI1NjMtZjU2MTM5MzAtMTA0ZC00ZGIzLTg1YTctNmNjYjI4NWZmMzE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDA2MTQzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhNjY5MmI4ZDM3YTAwNjE1YzJmMGJlZWMzNGYyNWI3ZTdjMWVmOTM3NjYxOTJkOGUyZmI5NzFhYmRhYzdmMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kszbDjbeCel5SJZoYoR_cdicDaY8JAfKDAQEjKCcYOE)
The BarTintColor never changes:
Steps to Reproduce
Appended the following to the SearchBarHandler Mapper:
![image](https://private-user-images.githubusercontent.com/58006892/266362672-de0476e4-9c5b-483e-8e39-512202a2e61b.png?jwt=eyJhbGciOiJIUzI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ZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDA2MTQzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxZGEyMTIxYTRhNjBmNTgzZTJhNzc5ZjBjMDkyNGI3YjY2MDNhYzIxYjVlNzBjYmY0ODJhM2Y4YTY5ZDBlZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MiP2188kC7unTjoA3FMvcVqdXhnDg-Rx9kFB5eAoYSI)
The app doesn't react to the BarTintColor change and continues to display a gray background.
Noticed the following warning:
My workloads:
![image](https://private-user-images.githubusercontent.com/58006892/266362770-f48e6971-0761-42d3-8bb9-386d26334a3a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1MTcxNzQsIm5iZiI6MTcyNTUxNjg3NCwicGF0aCI6Ii81ODAwNjg5Mi8yNjYzNjI3NzAtZjQ4ZTY5NzEtMDc2MS00MmQzLThiYjktMzg2ZDI2MzM0YTNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDA2MTQzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1NWM5NTViNjU0MTVjZDcxMmNmOWE0MzZiN2EyZjc3MTExOWQwYTk5YWRjMDdkMmYxZWMzMzdhODZhNjk1NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.A4509r-rRzjphpntGqUzUDDRYxYknsep91j6ADG8oNo)
Tested also with .NET 6 - same.
Link to public reproduction project repository
https://github.com/vasile135/SearchBarTintColorTest
Version with bug
7.0.92
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Affected platforms
iOS
Affected platform versions
iOS 16.6
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: