Permalink
Browse files

Fix PXSourceListBadgeCell accessibility

Now in the view-based source list, instead of just "Photos", VoiceOver
reads "Photos, 264"
  • Loading branch information...
dusek committed Mar 28, 2015
1 parent 929b165 commit ab0408c8fefac3d3d34c557fe08460963912690b
Showing with 8 additions and 0 deletions.
  1. +8 −0 PXSourceList/PXSourceListBadgeCell.m
@@ -111,4 +111,12 @@ - (NSAttributedString *)badgeString
attributes:@{NSFontAttributeName: badgeFont()}];
}
- (id)accessibilityAttributeValue:(NSString *)attribute
{
if ([attribute isEqualToString:NSAccessibilityValueAttribute])
return @(_badgeValue).description;
else
return [super accessibilityAttributeValue:attribute];
}
@end

0 comments on commit ab0408c

Please sign in to comment.