active wallpapers tracking

This commit is contained in:
leminlimez committed 2025-06-19 04:39:31 -04:00
1 parent 069d5cf1c3
commit f305e4b2c6
4 files changed
+45 -11

No files matched your search

+10
View File
@@ -71,6 +71,16 @@ struct SettingsView: View {
Label("Clear App Cache", systemImage: "trash.circle")
}
.foregroundStyle(.red)
Button(action: {
UIImpactFeedbackGenerator(style: .soft).impactOccurred()
UserDefaults.standard.set(nil, forKey: "ActiveCarPlayWallpapers")
Haptic.shared.notify(.success)
UIApplication.shared.alert(title: NSLocalizedString("CarPlay Applied Wallpapers Successfully Cleared!", comment: ""), body: "")
}) {
Label("Reset CarPlay Applied Wallpapers", systemImage: "trash.circle")
}
.foregroundStyle(.red)
} header: {
Label("Actions", systemImage: "gear")
}