From 1c6ba75ef227b678188e992087299fae19fa29c4 Mon Sep 17 00:00:00 2001 From: arnonchen <745735906@qq.com> Date: Fri, 29 Nov 2024 17:38:46 +0800 Subject: [PATCH] fix(ios): simplify logic --- renderer/native/ios/renderer/component/view/HippyViewManager.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/native/ios/renderer/component/view/HippyViewManager.mm b/renderer/native/ios/renderer/component/view/HippyViewManager.mm index f4e3fd9bc95..d8bdd20ba3f 100644 --- a/renderer/native/ios/renderer/component/view/HippyViewManager.mm +++ b/renderer/native/ios/renderer/component/view/HippyViewManager.mm @@ -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]);