comparison LazyBearWatchOS Extension/LazyBearApp.swift @ 452:bb69f9d1d20f

Implement HomeView in WatchOS
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sat, 26 Jun 2021 18:45:31 +0200
parents e4ca9898b79b
children
comparison
equal deleted inserted replaced
451:bb130738b816 452:bb69f9d1d20f
4 // 4 //
5 // Created by Dennis Concepción Martín on 19/6/21. 5 // Created by Dennis Concepción Martín on 19/6/21.
6 // 6 //
7 7
8 import SwiftUI 8 import SwiftUI
9 import CoreData
9 10
10 @main 11 @main
11 struct LazyBearApp: App { 12 struct LazyBearApp: App {
13 let persistenceController = PersistenceController.shared // Core Data init
14
12 @SceneBuilder var body: some Scene { 15 @SceneBuilder var body: some Scene {
13 WindowGroup { 16 WindowGroup {
14 NavigationView { 17 ContentView()
15 ContentView() 18 .environment(\.managedObjectContext, persistenceController.container.viewContext)
16 }
17 } 19 }
18 20
19 WKNotificationScene(controller: NotificationController.self, category: "myCategory") 21 WKNotificationScene(controller: NotificationController.self, category: "myCategory")
20 } 22 }
21 } 23 }