filtering days in customize will filter views
This commit is contained in:
@@ -14,6 +14,8 @@ struct FeelsApp: App {
|
||||
@Environment(\.scenePhase) private var scenePhase
|
||||
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
||||
|
||||
@StateObject var daysFilter = DaysFilterClass()
|
||||
|
||||
let persistenceController = PersistenceController.shared
|
||||
|
||||
init() {
|
||||
@@ -28,6 +30,7 @@ struct FeelsApp: App {
|
||||
WindowGroup {
|
||||
MainTabView()
|
||||
.environment(\.managedObjectContext, persistenceController.viewContext)
|
||||
.environmentObject(daysFilter)
|
||||
}.onChange(of: scenePhase) { phase in
|
||||
if phase == .background {
|
||||
// BGTask.scheduleBackgroundProcessing()
|
||||
|
||||
Reference in New Issue
Block a user