Permalink
Browse files

Merge pull request #49 from dusek/accessibility-badge-viewbased

Fix PXSourceListBadgeCell accessibility
  • Loading branch information...
Perspx committed May 8, 2015
2 parents 929b165 + ab0408c commit 2bf9e6a6f1e8a9f1aa29ce8e49bc20cd84721628
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 2bf9e6a

Please sign in to comment.