mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Improves My Apps tab accessibility
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user