33 lines
556 B
Swift
33 lines
556 B
Swift
//
|
|
// CourseDetailsView.swift
|
|
// CourseDetailsView
|
|
//
|
|
// Created by Felix Förtsch on 01.08.21.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct CourseDetailsView: View {
|
|
|
|
init(_ course: Course) {
|
|
self.course = course
|
|
}
|
|
|
|
let course: Course
|
|
|
|
var body: some View {
|
|
VStack {
|
|
Text(course.id)
|
|
Text(course.name)
|
|
Text(course.description)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
//struct CourseDetailsView_Previews: PreviewProvider {
|
|
// static var previews: some View {
|
|
// CourseDetailsView()
|
|
// }
|
|
//}
|