Add swiftlint & Minor fixes

This commit is contained in:
世界
2025-11-27 16:10:55 +08:00
parent 8855e0eef9
commit 0bfb6d2516
29 changed files with 382 additions and 196 deletions
@@ -40,13 +40,9 @@ public final class DashboardCardConfiguration: ObservableObject {
}
}
public func moveCard(from source: IndexSet, to destination: Int) {
public func moveCard(from source: IndexSet, to destination: Int) async {
cardOrder.move(fromOffsets: source, toOffset: destination)
// Save asynchronously in background
Task {
await saveCardOrder()
}
await saveCardOrder()
}
public func resetToDefault() async {