forked from lucxjo/leganto-apple
Removed not needed stuff from generation.
Started adding a view for adding data. Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
81cb27dd6c
commit
9701c3428c
9 changed files with 118 additions and 139 deletions
|
|
@ -9,12 +9,12 @@ import SwiftUI
|
|||
|
||||
@main
|
||||
struct LegantoApp: App {
|
||||
let persistenceController = PersistenceController.shared
|
||||
@StateObject private var dataController = DataController()
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
.environment(\.managedObjectContext, persistenceController.container.viewContext)
|
||||
.environment(\.managedObjectContext, dataController.container.viewContext)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue