🩹 Updating preview content

This commit is contained in:
Patrick Müller 2021-02-07 15:51:01 +01:00 committed by Patrick Müller
parent dba2233312
commit f36ef701d1
7 changed files with 10 additions and 3 deletions

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}