mirror of
https://github.com/ivabus/GradeMapper
synced 2024-11-22 08:05:08 +03:00
36 lines
638 B
Swift
36 lines
638 B
Swift
//
|
||
// 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()
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|