Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5693553

Browse files
authored
Supports displaying and searching by accessibilityIdentifier in the Hierarchy view. (#690)
1 parentf0b2dc9 commit5693553

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎Classes/Utility/FLEXUtility.m‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ + (NSString *)descriptionForView:(UIView *)view includingFrame:(BOOL)includeFram
100100
description = [descriptionstringByAppendingFormat:@"%@", [selfstringForCGRect:view.frame]];
101101
}
102102

103-
if (view.accessibilityLabel.length >0) {
104-
description = [descriptionstringByAppendingFormat:@" ·%@", view.accessibilityLabel];
103+
if (view.accessibilityLabel.length >0 || view.accessibilityIdentifier.length >0) {
104+
description = [descriptionstringByAppendingFormat:@" ·%@",
105+
view.accessibilityLabel.length >0 ? view.accessibilityLabel : view.accessibilityIdentifier];
105106
}
106107

107108
return description;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp