Adding lecturer to lecture plan item detail view

This commit is contained in:
2021-02-10 21:27:26 +01:00
committed by Patrick Müller
parent b689a7bbf1
commit ba0d4da657
4 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ struct ContentView: View {
}
.onAppear{
// Called upon the opening of the app
RaPlaFetcher.getRaplaFileAndSaveToCoreData(from: "https://rapla.dhbw-karlsruhe.de/rapla?page=ical&user=eisenbiegler&file=TINF20B4")
RaPlaFetcher.getRaplaFileAndSaveToCoreData(from: "https://rapla.dhbw-karlsruhe.de/rapla?page=ical&user=eisenbiegler&file=TINF19B4")
}
}
}
@@ -37,7 +37,7 @@ struct LecturePlanItem: View {
.bold()
Text(event.location!)
.bold()
Text("WIP")
Text(!event.lecturerList.isEmpty ? event.lecturerList[0].wrappedName : "")
.bold()
}.frame(maxWidth: .infinity, alignment: .leading)
}