diff --git a/React/Views/RCTView.m b/React/Views/RCTView.m index 21d7a71bc..39ec4f971 100644 --- a/React/Views/RCTView.m +++ b/React/Views/RCTView.m @@ -81,11 +81,17 @@ static NSString *RCTRecursiveAccessibilityLabel(UIView *view) { + BOOL isFirstIteration = YES; NSMutableString *str = [NSMutableString stringWithString:@""]; for (UIView *subview in view.subviews) { + if (isFirstIteration) { + isFirstIteration = NO; + } else { + [str appendString:@" "]; + } + NSString *label = subview.accessibilityLabel; if (label) { - [str appendString:@" "]; [str appendString:label]; } else { [str appendString:RCTRecursiveAccessibilityLabel(subview)];