Mercurial > public > simoleon
comparison Simoleon/SimoleonApp.swift @ 19:94fd7ac93060
Redesign
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 18 Jul 2021 20:00:05 +0100 |
parents | aec2e86e5dbd |
children | 4f862c618b44 |
comparison
equal
deleted
inserted
replaced
18:a3512b689bbe | 19:94fd7ac93060 |
---|---|
12 let persistenceController = PersistenceController.shared | 12 let persistenceController = PersistenceController.shared |
13 | 13 |
14 var body: some Scene { | 14 var body: some Scene { |
15 WindowGroup { | 15 WindowGroup { |
16 if UIDevice.current.userInterfaceIdiom == .pad { | 16 if UIDevice.current.userInterfaceIdiom == .pad { |
17 NavigationView { | 17 ContentViewPad() |
18 Sidebar() | 18 .environment(\.managedObjectContext, persistenceController.container.viewContext) |
19 ContentView() | |
20 CurrencyConversion(currency: "EUR/USD") | |
21 } | |
22 } else { | 19 } else { |
23 NavigationView { | 20 ContentView() |
24 ContentView() | 21 .environment(\.managedObjectContext, persistenceController.container.viewContext) |
25 .environment(\.managedObjectContext, persistenceController.container.viewContext) | |
26 } | |
27 } | 22 } |
28 } | 23 } |
29 } | 24 } |
30 } | 25 } |