public static void UpdateTextColor(this AppCompatButton button, XColor color, ColorStateList?defaultColor) { if (color.IsDefault) { button.SetTextColor(defaultColor); } else { button.SetTextColor(color.ToNative()); } }
public static Task <UIImage> AssertContainsColor(this UIView view, Microsoft.Maui.Color expectedColor) => AssertContainsColor(view, expectedColor.ToNative());