GradeMapper/Shared/ContentView.swift

37 lines
638 B
Swift
Raw Normal View History

2022-01-18 16:39:08 +03:00
//
// ContentView.swift
// Shared
//
// Created by Иван Бущик on 17.01.2022.
//
import SwiftUI
struct ContentView: View{
var body: some View {
VStack(alignment: .center) {
Text("GradeMapper")
.font(.largeTitle)
.fontWeight(.heavy)
.multilineTextAlignment(.center)
NavigationView {
List{
ForEach(subjectsNames, id: \.self) {
subjectName in NavigationLink("\(subjectName)", destination: SubjectView(name: subjectName))
}
}
}
}.padding([.leading, .top], 5.0)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}