Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Name each page's list for VoiceOver

Țugui Dragoșe2a658dc04d1
diff --git a/Peel/Views/AppList.swift b/Peel/Views/AppList.swift
index c36bdfaa..eb15e16d 100644
--- a/Peel/Views/AppList.swift
+++ b/Peel/Views/AppList.swift
@@ -41,6 +41,7 @@ struct AppList: View {
}
}
}
+ .accessibilityLabel(Text(Tool.applications.title))
.scrollBarBelowSectionHeaders(!visible.waiting.isEmpty)
.overlay {
if library.isLoading, library.apps.isEmpty {
diff --git a/Peel/Views/BackgroundItems/BackgroundItemList.swift b/Peel/Views/BackgroundItems/BackgroundItemList.swift
index efcacc26..f34d5628 100644
--- a/Peel/Views/BackgroundItems/BackgroundItemList.swift
+++ b/Peel/Views/BackgroundItems/BackgroundItemList.swift
@@ -20,6 +20,7 @@ struct BackgroundItemList: View {
section(Text("Agents"), items: filtered.filter { $0.kind == .agent })
section(Text("Daemons"), items: filtered.filter { $0.kind == .daemon })
}
+ .accessibilityLabel(Text(Tool.backgroundItems.title))
.scrollBarBelowSectionHeaders(!filtered.isEmpty)
.scanState(phase(filtered), isRescanning: isRescanning, scan: backgroundItems.scanRun) {
if let note = backgroundItems.unansweredNote, backgroundItems.items?.isEmpty == true {
diff --git a/Peel/Views/Cloud/CloudView.swift b/Peel/Views/Cloud/CloudView.swift
index 2474691b..13576a97 100644
--- a/Peel/Views/Cloud/CloudView.swift
+++ b/Peel/Views/Cloud/CloudView.swift
@@ -81,6 +81,7 @@ struct CloudView: View {
}
}
}
+ .accessibilityLabel(Text(Tool.cloud.title))
.scrollBarBelowSectionHeaders()
.dimmedWhileBusy(cloud.isScanning)
.columnSearch(text: $searchText, prompt: "Search iCloud Drive", when: cloud.files?.isEmpty == false)
diff --git a/Peel/Views/Developer/DeveloperList.swift b/Peel/Views/Developer/DeveloperList.swift
index e0ce5a62..acf55fd6 100644
--- a/Peel/Views/Developer/DeveloperList.swift
+++ b/Peel/Views/Developer/DeveloperList.swift
@@ -18,6 +18,7 @@ struct DeveloperList: View {
List(listed, selection: $developer.selection) { environment in
DeveloperRow(environment: environment)
}
+ .accessibilityLabel(Text(Tool.developer.title))
.columnSearch(text: $searchText, prompt: "Search Developer Caches", when: developer.environments?.isEmpty == false)
.scanState(phase, isRescanning: isRescanning, scan: developer.scanRun) {
if developer.environments?.isEmpty == true {
diff --git a/Peel/Views/Duplicates/DuplicateList.swift b/Peel/Views/Duplicates/DuplicateList.swift
index 53511709..7b551ac6 100644
--- a/Peel/Views/Duplicates/DuplicateList.swift
+++ b/Peel/Views/Duplicates/DuplicateList.swift
@@ -36,6 +36,7 @@ struct DuplicateList: View {
fileRows(groups)
}
}
+ .accessibilityLabel(Text(Tool.duplicates.title))
.scrollBarBelowSectionHeaders()
.columnSearch(text: $searchText, prompt: "Search Duplicates", when: !scan.groups.isEmpty || !scan.folderGroups.isEmpty)
.overlay {
diff --git a/Peel/Views/Extensions/ExtensionList.swift b/Peel/Views/Extensions/ExtensionList.swift
index fbe46fb0..6fea02d0 100644
--- a/Peel/Views/Extensions/ExtensionList.swift
+++ b/Peel/Views/Extensions/ExtensionList.swift
@@ -32,6 +32,7 @@ struct ExtensionList: View {
ExtensionRow(item: item)
}
}
+ .accessibilityLabel(Text(Tool.extensions.title))
.columnSearch(text: $searchText, prompt: "Search Extensions", when: extensions.extensions?.isEmpty == false)
.scanState(phase(filtered), isRescanning: isRescanning, scan: extensions.scanRun) {
if !extensions.unanswered.isEmpty, extensions.extensions?.isEmpty == true {
diff --git a/Peel/Views/FileSearch/FileSearchList.swift b/Peel/Views/FileSearch/FileSearchList.swift
index 351b03f2..237b8c9a 100644
--- a/Peel/Views/FileSearch/FileSearchList.swift
+++ b/Peel/Views/FileSearch/FileSearchList.swift
@@ -56,6 +56,7 @@ struct FileSearchList: View {
.disabled(search.isSearching || search.isRemoving)
}
}
+ .accessibilityLabel(Text(Tool.fileSearch.title))
.scrollBarBelowSectionHeaders(search.results?.files.isEmpty == false)
.scanState(phase, isRescanning: search.isSearching, fadesInResults: false, scan: search.scanRun) {
if search.results == nil {
diff --git a/Peel/Views/History/HistoryList.swift b/Peel/Views/History/HistoryList.swift
index 654679cf..e07bccb9 100644
--- a/Peel/Views/History/HistoryList.swift
+++ b/Peel/Views/History/HistoryList.swift
@@ -51,6 +51,7 @@ struct HistoryList: View {
}
}
}
+ .accessibilityLabel(Text(Tool.history.title))
.scrollBarBelowSectionHeaders(!listed.isEmpty && !refused.isEmpty)
.columnSearch(text: $searchText, prompt: "Search History", when: !history.batches.isEmpty || !history.refusalBatches.isEmpty)
.edgeBar(.top) {
diff --git a/Peel/Views/Homebrew/HomebrewList.swift b/Peel/Views/Homebrew/HomebrewList.swift
index ceba12f1..19862076 100644
--- a/Peel/Views/Homebrew/HomebrewList.swift
+++ b/Peel/Views/Homebrew/HomebrewList.swift
@@ -34,6 +34,7 @@ struct HomebrewList: View {
section(Text("Formulae"), packages: byKind[.formula] ?? [])
section(Text("Casks"), packages: byKind[.cask] ?? [])
}
+ .accessibilityLabel(Text(Tool.homebrew.title))
.scrollBarBelowSectionHeaders()
.scanState(phase(shown), isRescanning: isRescanning, scan: homebrew.scanRun) { placeholder(shown) }
// A `List` inserts a new section in one frame, with no animation, so the rows below it jump. To soften
diff --git a/Peel/Views/Installers/InstallerList.swift b/Peel/Views/Installers/InstallerList.swift
index ce9dc5ab..706b045d 100644
--- a/Peel/Views/Installers/InstallerList.swift
+++ b/Peel/Views/Installers/InstallerList.swift
@@ -32,6 +32,7 @@ struct InstallerList: View {
.tag(kind)
}
}
+ .accessibilityLabel(Text(Tool.installers.title))
.columnSearch(text: $searchText, prompt: "Search Installers and Backups", when: !installers.sections.isEmpty)
.scanState(phase(filtered), isRescanning: isRescanning, scan: installers.scanRun) {
if installers.sections.isEmpty, let unreadable = installers.scan?.unreadableLocations, !unreadable.isEmpty {
diff --git a/Peel/Views/Intel/IntelList.swift b/Peel/Views/Intel/IntelList.swift
index e978643c..a9e3ef0d 100644
--- a/Peel/Views/Intel/IntelList.swift
+++ b/Peel/Views/Intel/IntelList.swift
@@ -36,6 +36,7 @@ struct IntelList: View {
}
}
}
+ .accessibilityLabel(Text(Tool.intel.title))
.scrollBarBelowSectionHeaders(!byKind.isEmpty)
.columnSearch(text: $searchText, prompt: "Search Intel Software", when: !intel.findings.isEmpty)
.scanState(phase(matching), isRescanning: isRescanning, scan: intel.scanRun) {
diff --git a/Peel/Views/Orphans/OrphanList.swift b/Peel/Views/Orphans/OrphanList.swift
index 69569a5d..deffa962 100644
--- a/Peel/Views/Orphans/OrphanList.swift
+++ b/Peel/Views/Orphans/OrphanList.swift
@@ -16,6 +16,7 @@ struct OrphanList: View {
List(filtered, selection: $orphans.selection) { group in
OrphanGroupRow(group: group)
}
+ .accessibilityLabel(Text(Tool.orphans.title))
.contextMenu(forSelectionType: OrphanGroup.ID.self) { ids in
if ids.count == 1, let group = filtered.first(where: { ids.contains($0.id) }) {
Menu("This Belongs To") {
diff --git a/Peel/Views/Packages/PackageList.swift b/Peel/Views/Packages/PackageList.swift
index 749f3d11..6e4bf65e 100644
--- a/Peel/Views/Packages/PackageList.swift
+++ b/Peel/Views/Packages/PackageList.swift
@@ -37,6 +37,7 @@ struct PackageList: View {
}
.padding(.vertical, 2)
}
+ .accessibilityLabel(Text(Tool.packages.title))
.scanState(phase(filtered), isRescanning: isRescanning, scan: packages.scanRun) {
if packages.couldNotAsk {
ContentUnavailableView(
diff --git a/Peel/Views/Plugins/PluginList.swift b/Peel/Views/Plugins/PluginList.swift
index 9e594565..63331261 100644
--- a/Peel/Views/Plugins/PluginList.swift
+++ b/Peel/Views/Plugins/PluginList.swift
@@ -44,6 +44,7 @@ struct PluginList: View {
}
}
}
+ .accessibilityLabel(Text(Tool.plugins.title))
.scrollBarBelowSectionHeaders(!byCategory.isEmpty)
.scanState(phase(filtered), isRescanning: isRescanning, scan: plugins.scanRun) {
if plugins.plugins?.isEmpty == true {
diff --git a/Peel/Views/Projects/ProjectList.swift b/Peel/Views/Projects/ProjectList.swift
index f71bc25f..95cb483f 100644
--- a/Peel/Views/Projects/ProjectList.swift
+++ b/Peel/Views/Projects/ProjectList.swift
@@ -37,6 +37,7 @@ struct ProjectList: View {
ProjectRow(group: group)
}
}
+ .accessibilityLabel(Text(Tool.projects.title))
.columnSearch(text: $searchText, prompt: "Search Build Artifacts", when: projects.groups?.isEmpty == false)
.scanState(phase(filtered), isRescanning: isRescanning, scan: projects.scanRun) {
if projects.folders.isEmpty {
diff --git a/Peel/Views/Space/SpaceList.swift b/Peel/Views/Space/SpaceList.swift
index 17a730ce..26fc8b49 100644
--- a/Peel/Views/Space/SpaceList.swift
+++ b/Peel/Views/Space/SpaceList.swift
@@ -61,6 +61,7 @@ struct SpaceList: View {
}
}
}
+ .accessibilityLabel(Text(Tool.space.title))
.scrollBarBelowSectionHeaders(space.report?.items.isEmpty == false)
.columnSearch(text: $searchText, prompt: "Search Space", when: space.report?.items.isEmpty == false)
.scanState(