Skip to content

Commit

Permalink
simplify boolean logic of the tappable check
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Scionti committed Aug 5, 2024
1 parent 23bcc0e commit 89327a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/KIF/Additions/UIView-KIFAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ - (BOOL)isProbablyTappable
// Is this view currently on screen?
- (BOOL)isTappable;
{
return ([self isTappableInRect:self.bounds] || ([self hasTapGestureRecognizerAndIsControlEnabled] &&
[self isTappableInRect:self.bounds]));
return [self isTappableInRect:self.bounds];
}

- (BOOL)hasTapGestureRecognizerAndIsControlEnabled
Expand Down

0 comments on commit 89327a2

Please sign in to comment.