Add accessibility identifiers to profile view.

pull/2/head
Matthew Chen 6 years ago
parent c619f815b5
commit f7d86028da

@ -111,6 +111,7 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
nameRow.userInteractionEnabled = YES; nameRow.userInteractionEnabled = YES;
[nameRow [nameRow
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(nameRowTapped:)]]; addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(nameRowTapped:)]];
nameRow.accessibilityIdentifier = SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"nameRow");
[rows addObject:nameRow]; [rows addObject:nameRow];
UILabel *nameLabel = [UILabel new]; UILabel *nameLabel = [UILabel new];
@ -150,6 +151,7 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
avatarRow.userInteractionEnabled = YES; avatarRow.userInteractionEnabled = YES;
[avatarRow [avatarRow
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(avatarRowTapped:)]]; addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(avatarRowTapped:)]];
avatarRow.accessibilityIdentifier = SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"avatarRow");
[rows addObject:avatarRow]; [rows addObject:avatarRow];
UILabel *avatarLabel = [UILabel new]; UILabel *avatarLabel = [UILabel new];
@ -186,6 +188,7 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
infoRow.userInteractionEnabled = YES; infoRow.userInteractionEnabled = YES;
[infoRow [infoRow
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(infoRowTapped:)]]; addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(infoRowTapped:)]];
infoRow.accessibilityIdentifier = SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"infoRow");
[rows addObject:infoRow]; [rows addObject:infoRow];
UILabel *infoLabel = [UILabel new]; UILabel *infoLabel = [UILabel new];

Loading…
Cancel
Save