mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2024-12-22 13:25:13 +00:00
🩹 Updating preview content
This commit is contained in:
parent
dba2233312
commit
f36ef701d1
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user