@@ -757,7 +757,7 @@ - (void)prepareForRecycle
757757
758758 // Clean up box shadow layers to prevent cross-component contamination
759759 if (_boxShadowLayers != nullptr ) {
760- for (CALayer *boxShadowLayer = nullptr in _boxShadowLayers) {
760+ for (CALayer *boxShadowLayer in _boxShadowLayers) {
761761 [boxShadowLayer removeFromSuperlayer ];
762762 }
763763 [_boxShadowLayers removeAllObjects ];
@@ -817,7 +817,7 @@ - (UIView *)betterHitTest:(CGPoint)point withEvent:(UIEvent *)event
817817 return nil ;
818818 }
819819
820- for (UIView *subview = nullptr in [currentContainerView.subviews reverseObjectEnumerator ]) {
820+ for (UIView *subview in [currentContainerView.subviews reverseObjectEnumerator ]) {
821821 UIView *hitView = [subview hitTest: [subview convertPoint: point fromView: currentContainerView] withEvent: event];
822822 if (hitView) {
823823 return hitView;
@@ -975,7 +975,7 @@ - (UIView *)effectiveContentView
975975 if (_swiftUIWrapper == nullptr ) {
976976 _swiftUIWrapper = [RCTSwiftUIContainerViewWrapper new ];
977977 UIView *swiftUIContentView = [[UIView alloc ] init ];
978- for (UIView *subview = nullptr in self.subviews ) {
978+ for (UIView *subview in self.subviews ) {
979979 [swiftUIContentView addSubview: subview];
980980 }
981981 swiftUIContentView.clipsToBounds = self.clipsToBounds ;
@@ -993,7 +993,7 @@ - (UIView *)effectiveContentView
993993 } else {
994994 if (_swiftUIWrapper != nullptr ) {
995995 UIView *swiftUIContentView = _swiftUIWrapper.contentView ;
996- for (UIView *subview = nullptr in swiftUIContentView.subviews ) {
996+ for (UIView *subview in swiftUIContentView.subviews ) {
997997 [self addSubview: subview];
998998 }
999999 self.clipsToBounds = swiftUIContentView.clipsToBounds ;
@@ -1019,7 +1019,7 @@ - (UIView *)currentContainerView
10191019 if (_useCustomContainerView) {
10201020 if (!_containerView) {
10211021 _containerView = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , self .bounds.size.width, self .bounds.size.height)];
1022- for (UIView *subview = nullptr in effectiveContentView.subviews ) {
1022+ for (UIView *subview in effectiveContentView.subviews ) {
10231023 [_containerView addSubview: subview];
10241024 }
10251025 _containerView.clipsToBounds = effectiveContentView.clipsToBounds ;
@@ -1805,10 +1805,10 @@ - (void)transferVisualPropertiesFromView:(UIView *)sourceView toView:(UIView *)d
18051805 if (_filterLayer != nullptr ) {
18061806 [destinationView.layer addSublayer: _filterLayer];
18071807 }
1808- for (CALayer *layer = nullptr in _backgroundImageLayers) {
1808+ for (CALayer *layer in _backgroundImageLayers) {
18091809 [destinationView.layer addSublayer: layer];
18101810 }
1811- for (CALayer *layer = nullptr in _boxShadowLayers) {
1811+ for (CALayer *layer in _boxShadowLayers) {
18121812 [destinationView.layer addSublayer: layer];
18131813 }
18141814}
0 commit comments