File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,10 @@ - (UILabel *)setupSubtitle {
136
136
UIColor *color = _subtitleOptions.color .get ;
137
137
subtitleLabel.textColor = color;
138
138
}
139
-
140
- if (_parentTestID && _parentTestID.hasValue && ((NSString *) _parentTestID.get ).length > 0 ) {
141
- subtitleLabel.accessibilityLabel = [NSString stringWithFormat: @" %@ .subtitle" , _parentTestID.get];
139
+
140
+ if (_parentTestID && _parentTestID.hasValue && ((NSString *)_parentTestID.get ).length > 0 ) {
141
+ subtitleLabel.accessibilityIdentifier =
142
+ [NSString stringWithFormat: @" %@ .subtitle" , _parentTestID.get];
142
143
}
143
144
144
145
[self .titleView addSubview: subtitleLabel];
@@ -180,8 +181,9 @@ - (UILabel *)setupTitle {
180
181
titleLabel.textColor = color;
181
182
}
182
183
183
- if (_parentTestID && _parentTestID.hasValue && ((NSString *) _parentTestID.get ).length > 0 ) {
184
- titleLabel.accessibilityLabel = [NSString stringWithFormat: @" %@ .title" , _parentTestID.get];
184
+ if (_parentTestID && _parentTestID.hasValue && ((NSString *)_parentTestID.get ).length > 0 ) {
185
+ titleLabel.accessibilityIdentifier =
186
+ [NSString stringWithFormat: @" %@ .title" , _parentTestID.get];
185
187
}
186
188
187
189
[self .titleView addSubview: titleLabel];
You can’t perform that action at this time.
0 commit comments