Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
File Search keeps its field's focus through a search
Țugui Dragoș462ce2d6bece
diff --git a/Peel/Views/FileSearch/FileSearchList.swift b/Peel/Views/FileSearch/FileSearchList.swiftindex 65cda2dc..1622cbdc 100644--- a/Peel/Views/FileSearch/FileSearchList.swift+++ b/Peel/Views/FileSearch/FileSearchList.swift@@ -56,7 +56,7 @@ struct FileSearchList: View {.disabled(search.isSearching || search.isRemoving)}}- .scanState(phase, isRescanning: search.isSearching, scan: search.scanRun) {+ .scanState(phase, isRescanning: search.isSearching, fadesInResults: false, scan: search.scanRun) {if search.results == nil {ContentUnavailableView("Search for Files",diff --git a/Peel/Views/ScanState.swift b/Peel/Views/ScanState.swiftindex e7517261..c15d82a9 100644--- a/Peel/Views/ScanState.swift+++ b/Peel/Views/ScanState.swift@@ -21,8 +21,9 @@ enum ScanWork: Equatable {extension View {/// Shows a column's scan state: dims the list while a rescan runs, and fades between the spinner, a message,- /// and the list. Pass `fadesInResults: false` where a header stays on screen through the scan, since the fade- /// covers the whole column. `scan` provides the count of items read.+ /// and the list. Pass `fadesInResults: false` where a header or a search field stays on screen through the scan:+ /// the fade covers the whole column, and the list rebuilt under it takes the field's focus. `scan` provides the+ /// count of items read.func scanState(_ phase: ScanPhase,isRescanning: Bool = false,