Ariver
2026-06-11 c827fedf9b69660c5aea516e729741b85b5c0242
src/Apptag/AppLibraryController.swift
@@ -22,6 +22,10 @@
    let summary: SmartStartSummary?
}
struct AppLibraryUncategorizedResetResult {
    let snapshot: AppLibrarySnapshot
}
enum AppLibraryController {
    static func refresh(useCache: Bool = true) -> AppLibraryRefreshResult {
        let scannedApps = AppIndexer.scan(useCache: useCache)
@@ -56,6 +60,14 @@
        )
    }
    static func resetToUncategorized() -> AppLibraryUncategorizedResetResult {
        let scannedApps = AppIndexer.scan(useCache: false)
        let store = TagDatabase.resetAppTagAssignmentsToUncategorized()
        return AppLibraryUncategorizedResetResult(
            snapshot: makeSnapshot(scannedApps: scannedApps, store: store)
        )
    }
    private static func makeSnapshot(
        scannedApps: [AppInfo],
        store: TagDatabase.Store