diff --git a/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.h b/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.h index 9c7260ff..9ecd4cce 100644 --- a/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.h +++ b/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.h @@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)growing_dismissAnimated:(BOOL)animated triggeringAction:(UIAlertAction *)action - triggeredByPopoverDimmingView:(UIView *)view + triggeredByPopoverDimmingView:(BOOL)isTriggeredByPopoverDimmingView dismissCompletion:(id)completion; + (nullable UIAlertAction *)growing_actionForActionView:(UIView *)actionView; diff --git a/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.m b/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.m index 4b787a26..ea03297c 100644 --- a/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.m +++ b/GrowingAutotrackerCore/Autotrack/UIAlertController+GrowingAutotracker.m @@ -34,13 +34,15 @@ - (void)growing_dismissAnimated:(BOOL)animated triggeringAction:(UIAlertAction * - (void)growing_dismissAnimated:(BOOL)animated triggeringAction:(UIAlertAction *)action - triggeredByPopoverDimmingView:(UIView *)view + triggeredByPopoverDimmingView:(BOOL)isTriggeredByPopoverDimmingView dismissCompletion:(id)completion { - [self growing_sendClickEventForAction:action]; + if (completion) { + [self growing_sendClickEventForAction:action]; + } [self growing_dismissAnimated:animated triggeringAction:action - triggeredByPopoverDimmingView:view + triggeredByPopoverDimmingView:isTriggeredByPopoverDimmingView dismissCompletion:completion]; }