Xamarin Forms – Set entry clear icon color on iOS

Here is a small piece of code that you can use as a Xamarin Forms effect to hook into your entry.
It allows changing the color of the clear icon that is available inside the native entry control of iOS ( when enabled ).

With this platform specific code, we can get a hold of the UIButton inside the UITextField and set a color. Than again pasting it into the UIButton.

As always a full example can be found here https://github.com/Depechie/EntryClearIconColor