-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmojionApp.swift
31 lines (27 loc) · 972 Bytes
/
EmojionApp.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// EmojionApp.swift
// Shared
//
// Created by Plus1XP on 14/04/2022.
//
import SwiftUI
@main
struct EmojionApp: App {
@StateObject private var entryStore = EntryStore()
@StateObject private var feelingFinderStore = FeelingFinderStore()
@StateObject private var calendarStore = CalendarStore()
@StateObject private var chartStore = ChartStore()
@StateObject private var biometricStore = BiometricStore()
let persistenceController = PersistenceController.shared
var body: some Scene {
WindowGroup {
AuthenticationView()
.environment(\.managedObjectContext, persistenceController.container.viewContext)
.environmentObject(self.entryStore)
.environmentObject(self.feelingFinderStore)
.environmentObject(self.calendarStore)
.environmentObject(self.chartStore)
.environmentObject(self.biometricStore)
}
}
}