Backup before friendly design pass

This commit is contained in:
MrDiderot
2026-07-23 10:33:12 +02:00
parent 39a0e35fd2
commit af1e67f4cc
8 changed files with 957 additions and 130 deletions

View File

@@ -60,7 +60,16 @@ enum MomentWidgetStorage {
static let lastRecordedAtKey = "lastWidgetSnapshotDate"
static var defaults: UserDefaults {
UserDefaults(suiteName: appGroupIdentifier) ?? .standard
guard appGroupAvailable,
let defaults = UserDefaults(suiteName: appGroupIdentifier) else {
return .standard
}
return defaults
}
private static var appGroupAvailable: Bool {
FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupIdentifier) != nil
}
static func enqueue(ratingRawValue: String) {