xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

Add the RadioButtonRenderer on iOS again #15706

Closed RafaRioFal4699 closed 1 year ago

RafaRioFal4699 commented 1 year ago

A few years ago, you added a RadioButtonRenderer for iOS. Since version 5.0, this renderer was removed, difficulting the rendering of this control on iOS. Why you did this? Xamaron Forms RadioButton works very good and it's so easy to understand, which it makes perfect for most of the projects

jfversluis commented 1 year ago

I'm afraid I don't understand. The RadioButton and therefore also the RadioButtonRenderer is still available in the current version of Xamarin.Forms.

RafaRioFal4699 commented 1 year ago

I'm talking about the specific iOS renderer

image

Android hasn't this problem image

I'm using Xamarin Forms 5.0.0.2401

jfversluis commented 1 year ago

Because the RadioButton is a templated control you should already have a lot of flexibility: https://learn.microsoft.com/xamarin/xamarin-forms/user-interface/radiobutton#redefine-radiobutton-appearance

To be honest I'm not sure how it now works on iOS, I think because the radio button isn't really a concept on iOS we're creating our own control but it seems we've not taken the renderer approach.

In either case, we're not going to add it (back) in this stage of the Xamarin.Forms lifecycle.