From f36ef701d12624056ab3ebdd48be07242d2de367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Mu=CC=88ller?= Date: Sun, 7 Feb 2021 15:51:01 +0100 Subject: [PATCH] :adhesive_bandage: Updating preview content --- DHBW-Service/Views/ContentView.swift | 1 + DHBW-Service/Views/Other/FirstOpeningSettings.swift | 1 + DHBW-Service/Views/Tabs/HomeView.swift | 7 ++++--- DHBW-Service/Views/Tabs/LecturePlanItem.swift | 1 + DHBW-Service/Views/Tabs/LecturePlanList.swift | 1 + DHBW-Service/Views/Tabs/SettingsMain.swift | 1 + .../Tabs/SettingsSubViews/SettingsAcknowledgements.swift | 1 + 7 files changed, 10 insertions(+), 3 deletions(-) diff --git a/DHBW-Service/Views/ContentView.swift b/DHBW-Service/Views/ContentView.swift index 130b93a..7c2908a 100644 --- a/DHBW-Service/Views/ContentView.swift +++ b/DHBW-Service/Views/ContentView.swift @@ -59,6 +59,7 @@ struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } diff --git a/DHBW-Service/Views/Other/FirstOpeningSettings.swift b/DHBW-Service/Views/Other/FirstOpeningSettings.swift index 2ad4ed4..e07133f 100644 --- a/DHBW-Service/Views/Other/FirstOpeningSettings.swift +++ b/DHBW-Service/Views/Other/FirstOpeningSettings.swift @@ -137,6 +137,7 @@ struct FirstOpeningSettings_Previews: PreviewProvider { static var previews: some View { FirstOpeningSettings() .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } diff --git a/DHBW-Service/Views/Tabs/HomeView.swift b/DHBW-Service/Views/Tabs/HomeView.swift index 5449f90..7ecae5f 100644 --- a/DHBW-Service/Views/Tabs/HomeView.swift +++ b/DHBW-Service/Views/Tabs/HomeView.swift @@ -43,7 +43,7 @@ struct HomeView: View { VStack { Text("today".localized(tableName: "HomeView")) - .font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/) + .font(.title) .frame(maxWidth: .infinity, alignment: .leading) VStack { if(!todaysEvents.isEmpty){ @@ -65,7 +65,7 @@ struct HomeView: View { VStack { Text("tomorrow".localized(tableName: "HomeView")) - .font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/) + .font(.title) .frame(maxWidth: .infinity, alignment: .leading) VStack { if(!tomorrowsEvents.isEmpty){ @@ -94,7 +94,7 @@ struct HomeView: View { VStack { Text("upcomingExams".localized(tableName: "HomeView")) - .font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/) + .font(.title) .frame(maxWidth: .infinity, alignment: .leading) VStack { if(!upcomingExams.isEmpty){ @@ -246,6 +246,7 @@ struct HomeView_Previews: PreviewProvider { static var previews: some View { HomeView() .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } diff --git a/DHBW-Service/Views/Tabs/LecturePlanItem.swift b/DHBW-Service/Views/Tabs/LecturePlanItem.swift index 5ebba3b..cd355f2 100644 --- a/DHBW-Service/Views/Tabs/LecturePlanItem.swift +++ b/DHBW-Service/Views/Tabs/LecturePlanItem.swift @@ -41,6 +41,7 @@ struct LecturePlanItem_Previews: PreviewProvider { static var previews: some View { LecturePlanItem(event: getPreviewEvent()) .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } diff --git a/DHBW-Service/Views/Tabs/LecturePlanList.swift b/DHBW-Service/Views/Tabs/LecturePlanList.swift index f9fb747..cd96d0a 100644 --- a/DHBW-Service/Views/Tabs/LecturePlanList.swift +++ b/DHBW-Service/Views/Tabs/LecturePlanList.swift @@ -70,6 +70,7 @@ struct LecturePlanList_Previews: PreviewProvider { static var previews: some View { LecturePlanList() .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } diff --git a/DHBW-Service/Views/Tabs/SettingsMain.swift b/DHBW-Service/Views/Tabs/SettingsMain.swift index 6d1d224..2a15e47 100644 --- a/DHBW-Service/Views/Tabs/SettingsMain.swift +++ b/DHBW-Service/Views/Tabs/SettingsMain.swift @@ -55,6 +55,7 @@ struct SettingsMain_Previews: PreviewProvider { static var previews: some View { SettingsMain() .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } diff --git a/DHBW-Service/Views/Tabs/SettingsSubViews/SettingsAcknowledgements.swift b/DHBW-Service/Views/Tabs/SettingsSubViews/SettingsAcknowledgements.swift index 8780177..87cafb5 100644 --- a/DHBW-Service/Views/Tabs/SettingsSubViews/SettingsAcknowledgements.swift +++ b/DHBW-Service/Views/Tabs/SettingsSubViews/SettingsAcknowledgements.swift @@ -24,6 +24,7 @@ struct SettingsAcknowledgements_Previews: PreviewProvider { static var previews: some View { SettingsAcknowledgements() .preferredColorScheme(.dark) + .previewDevice("iPhone 12") .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) }