diff --git a/test-app/ios-uikit/TestApp/ButtonBinding.swift b/test-app/ios-uikit/TestApp/ButtonBinding.swift index e4ea479304..920efdd836 100644 --- a/test-app/ios-uikit/TestApp/ButtonBinding.swift +++ b/test-app/ios-uikit/TestApp/ButtonBinding.swift @@ -47,8 +47,6 @@ class ButtonBinding: Button { } @objc func clicked() { - if (self.onClick != nil) { - self.onClick() - } + self.onClick?() } }