From 369c8f03db2f6d507697ab2296db5e6f81c8cd1e Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 27 Jun 2026 17:15:11 +0800
Subject: [PATCH] Reduce SmartStart default categories to thirteen
---
src/Apptag/SmartCategorization/SmartCategory.swift | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Apptag/SmartCategorization/SmartCategory.swift b/src/Apptag/SmartCategorization/SmartCategory.swift
index dac8b71..4fc10f0 100644
--- a/src/Apptag/SmartCategorization/SmartCategory.swift
+++ b/src/Apptag/SmartCategorization/SmartCategory.swift
@@ -249,7 +249,7 @@
}
}
- var smartStartDefaultCategoryID: SmartCategoryID {
+ var smartStartDefaultCategoryID: SmartCategoryID? {
switch self {
case .pdf, .productivity, .writing:
return .office
@@ -262,6 +262,8 @@
return .design
case .media, .video, .audio, .game:
return .entertainment
+ case .finance, .other:
+ return nil
default:
return self
}
@@ -301,9 +303,7 @@
.design,
.picturePhoto,
.entertainment,
- .finance,
- .education,
- .other
+ .education
]
static let definitions: [SmartCategoryDefinition] = orderedIDs.map {
--
Gitblit v1.9.3