Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[ios] change checkbox to use default constructor (#6512)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen authored and hartez committed Jun 14, 2019
1 parent ec1e16c commit ab11060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Xamarin.Forms.Platform.iOS/Renderers/FormsCheckBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal float MinimumViewSize
}
}

public FormsCheckBox() : base(UIButtonType.System)
public FormsCheckBox()
{
TouchUpInside += OnTouchUpInside;
ContentMode = UIViewContentMode.Center;
Expand Down Expand Up @@ -140,10 +140,10 @@ protected virtual UIImage GetCheckBoximage()
}

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;
}
Expand Down

0 comments on commit ab11060

Please sign in to comment.