Improves My Apps tab accessibility

This commit is contained in:
Riley Testut
2020-08-27 15:25:52 -07:00
parent f02fcad3a0
commit 012917f938
2 changed files with 13 additions and 1 deletions

View File

@@ -1367,7 +1367,18 @@ extension MyAppsViewController
headerView.button.addTarget(self, action: #selector(MyAppsViewController.refreshAllApps(_:)), for: .primaryActionTriggered)
headerView.button.layoutIfNeeded()
headerView.button.isIndicatingActivity = self.isRefreshingAllApps
if self.isRefreshingAllApps
{
headerView.button.isIndicatingActivity = true
headerView.button.accessibilityLabel = NSLocalizedString("Refreshing", comment: "")
headerView.button.accessibilityTraits.remove(.notEnabled)
}
else
{
headerView.button.isIndicatingActivity = false
headerView.button.accessibilityLabel = nil
}
}
return headerView