From 5bd886b5ca2f84ec020bc4c617124105fe5c64df Mon Sep 17 00:00:00 2001 From: James Clancey Date: Thu, 27 Jun 2019 13:25:36 -0800 Subject: [PATCH] Fixed crash in iOS button --- src/HotUI.iOS/Handlers/ButtonHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HotUI.iOS/Handlers/ButtonHandler.cs b/src/HotUI.iOS/Handlers/ButtonHandler.cs index 1621340d..a6223b5b 100644 --- a/src/HotUI.iOS/Handlers/ButtonHandler.cs +++ b/src/HotUI.iOS/Handlers/ButtonHandler.cs @@ -14,7 +14,7 @@ namespace HotUI.iOS Layer.CornerRadius = 3f; } - private void ButtonHandler_TouchUpInside(object sender, EventArgs e) => button?.OnClick(); + private void ButtonHandler_TouchUpInside(object sender, EventArgs e) => button?.OnClick?.Invoke(); public UIView View => this;