[ios] change checkbox to use default constructor (#6512)
authorShane Neuville <shane94@hotmail.com>
Fri, 14 Jun 2019 19:07:17 +0000 (13:07 -0600)
committerE.Z. Hart <hartez@users.noreply.github.com>
Fri, 14 Jun 2019 19:07:17 +0000 (13:07 -0600)
Xamarin.Forms.Platform.iOS/Renderers/FormsCheckBox.cs

index 53a5ebb..6492b80 100644 (file)
@@ -30,7 +30,7 @@ namespace Xamarin.Forms.Platform.iOS
                        }
                }
 
-               public FormsCheckBox() : base(UIButtonType.System)
+               public FormsCheckBox()
                {
                        TouchUpInside += OnTouchUpInside;
                        ContentMode = UIViewContentMode.Center;
@@ -140,10 +140,10 @@ namespace Xamarin.Forms.Platform.iOS
                        }
 
                        if (_checked == null)
-                               _checked = CreateCheckBox(CreateCheckMark());
+                               _checked = CreateCheckBox(CreateCheckMark()).ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
 
                        if (_unchecked == null)
-                               _unchecked = CreateCheckBox(null);
+                               _unchecked = CreateCheckBox(null).ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
 
                        return IsChecked ? _checked : _unchecked;
                }