update top header graph view when custom color changes
code cleanup
This commit is contained in:
@@ -30,14 +30,12 @@ struct FeelsApp: App {
|
||||
.environment(\.managedObjectContext, persistenceController.viewContext)
|
||||
}.onChange(of: scenePhase) { phase in
|
||||
if phase == .background {
|
||||
BGTask.scheduleBackgroundProcessing()
|
||||
// BGTask.scheduleBackgroundProcessing()
|
||||
WidgetCenter.shared.reloadAllTimelines()
|
||||
}
|
||||
|
||||
if phase == .active {
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
print("UserDefaultsStore input day", UserDefaultsStore.getOnboarding().inputDay)
|
||||
print("UserDefaultsStore input date", UserDefaultsStore.getOnboarding().date)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user