From bcaee629473b4a3aebfe4c40a1586c16a75826e5 Mon Sep 17 00:00:00 2001 From: Adam Gleitman Date: Tue, 9 Jul 2024 16:01:58 -0700 Subject: [PATCH] Clarify a TODO --- packages/react-native/React/Views/RCTShadowView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/React/Views/RCTShadowView.m b/packages/react-native/React/Views/RCTShadowView.m index c54940a2212866..8effd4a3c688af 100644 --- a/packages/react-native/React/Views/RCTShadowView.m +++ b/packages/react-native/React/Views/RCTShadowView.m @@ -185,7 +185,7 @@ - (CGRect)measureLayoutRelativeToAncestor:(RCTShadowView *)ancestor // [macOS - (RCTShadowView *)ancestorSharedWithShadowView:(RCTShadowView *)shadowView { - // TODO: This can be optimized by climbing up both hierarchies at the same time + // TODO: Can this be optimized by climbing up both hierarchies at the same time? NSMutableSet *selfSuperviews = [NSMutableSet set]; for (RCTShadowView *view = self; view != nil; view = [view reactSuperview]) { [selfSuperviews addObject:view];