mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2024-11-22 17:33:57 +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 {
|
static var previews: some View {
|
||||||
ContentView()
|
ContentView()
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,6 +137,7 @@ struct FirstOpeningSettings_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
FirstOpeningSettings()
|
FirstOpeningSettings()
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ struct HomeView: View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Text("today".localized(tableName: "HomeView"))
|
Text("today".localized(tableName: "HomeView"))
|
||||||
.font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
|
.font(.title)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
VStack {
|
VStack {
|
||||||
if(!todaysEvents.isEmpty){
|
if(!todaysEvents.isEmpty){
|
||||||
|
@ -65,7 +65,7 @@ struct HomeView: View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Text("tomorrow".localized(tableName: "HomeView"))
|
Text("tomorrow".localized(tableName: "HomeView"))
|
||||||
.font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
|
.font(.title)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
VStack {
|
VStack {
|
||||||
if(!tomorrowsEvents.isEmpty){
|
if(!tomorrowsEvents.isEmpty){
|
||||||
|
@ -94,7 +94,7 @@ struct HomeView: View {
|
||||||
|
|
||||||
VStack {
|
VStack {
|
||||||
Text("upcomingExams".localized(tableName: "HomeView"))
|
Text("upcomingExams".localized(tableName: "HomeView"))
|
||||||
.font(/*@START_MENU_TOKEN@*/.title/*@END_MENU_TOKEN@*/)
|
.font(.title)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
VStack {
|
VStack {
|
||||||
if(!upcomingExams.isEmpty){
|
if(!upcomingExams.isEmpty){
|
||||||
|
@ -246,6 +246,7 @@ struct HomeView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
HomeView()
|
HomeView()
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ struct LecturePlanItem_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
LecturePlanItem(event: getPreviewEvent())
|
LecturePlanItem(event: getPreviewEvent())
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@ struct LecturePlanList_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
LecturePlanList()
|
LecturePlanList()
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,7 @@ struct SettingsMain_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
SettingsMain()
|
SettingsMain()
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ struct SettingsAcknowledgements_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
SettingsAcknowledgements()
|
SettingsAcknowledgements()
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
|
.previewDevice("iPhone 12")
|
||||||
.environmentObject(getFirstOpening())
|
.environmentObject(getFirstOpening())
|
||||||
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
.environment(\.managedObjectContext, PersistenceController.preview.container.viewContext)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user