Skip to content

Commit

Permalink
fix(ios): simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyunong committed Nov 29, 2024
1 parent 0ab96f4 commit 1c6ba75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ - (void)measureInAppWindow:(NSNumber *)componentTag
double locationY = [params[HippyYOnScreenKey] doubleValue];
UIView* hitView = [rootView hitTest:{locationX, locationY} withEvent:nil];
// TODO: not a hippp view
if (hitView != nil && [hitView respondsToSelector:@selector(hippyTag)] && hitView.hippyTag) {
if (hitView != nil && hitView.hippyTag) {
[locationDict setObject:hitView.hippyTag forKey:HippyTagKey];
}
callback(@[locationDict]);
Expand Down

0 comments on commit 1c6ba75

Please sign in to comment.