Merge branch 'accessibility_improvements' into develop

# Conflicts:
#	AltStore/Sources/SourcesViewController.swift
This commit is contained in:
Riley Testut
2020-08-28 12:34:51 -07:00
43 changed files with 2839 additions and 2367 deletions

View File

@@ -72,7 +72,6 @@ private extension SourcesViewController
cell.tintColor = tintColor
cell.bannerView.iconImageView.isHidden = true
cell.bannerView.betaBadgeView.isHidden = true
cell.bannerView.buttonLabel.isHidden = true
cell.bannerView.button.isHidden = true
cell.bannerView.button.isIndicatingActivity = false
@@ -83,6 +82,10 @@ private extension SourcesViewController
cell.errorBadge?.isHidden = (source.error == nil)
let attributedLabel = NSAttributedString(string: source.name + "\n" + source.sourceURL.absoluteString, attributes: [.accessibilitySpeechPunctuation: true])
cell.bannerView.accessibilityAttributedLabel = attributedLabel
cell.bannerView.accessibilityTraits.remove(.button)
// Make sure refresh button is correct size.
cell.layoutIfNeeded()
}