GradeMapper/Shared/ContentView.swift
2022-01-18 16:39:08 +03:00

37 lines
638 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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()
}
}