Remove widget extension
Delete KisaniCalWidget target, Shared/WidgetDataStore, WidgetBridge, App Group entitlements, and all syncWidget() calls.
This commit is contained in:
@@ -76,18 +76,14 @@ struct ContentView: View {
|
||||
}
|
||||
.onAppear {
|
||||
if !hasOnboarded { showOnboarding = true }
|
||||
taskVM.syncWidget()
|
||||
workoutVM.syncWidget()
|
||||
NotificationManager.shared.reschedule(workoutVM: workoutVM, taskVM: taskVM)
|
||||
}
|
||||
.onChange(of: scenePhase) { phase in
|
||||
if phase == .active {
|
||||
NotificationManager.shared.reschedule(workoutVM: workoutVM, taskVM: taskVM)
|
||||
taskVM.syncWidget()
|
||||
workoutVM.syncWidget()
|
||||
}
|
||||
}
|
||||
.onChange(of: taskVM.tasks) { _ in
|
||||
taskVM.syncWidget()
|
||||
NotificationManager.shared.reschedule(workoutVM: workoutVM, taskVM: taskVM)
|
||||
}
|
||||
.onChange(of: workoutVM.doneSets) { _ in
|
||||
|
||||
Reference in New Issue
Block a user