Commit
This commit is contained in:
parent
955c7d9066
commit
f59d00016b
@ -10,6 +10,7 @@ import SwiftUI
|
|||||||
struct ScheduleView: View {
|
struct ScheduleView: View {
|
||||||
@ObservedObject var vm: ViewModel
|
@ObservedObject var vm: ViewModel
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
ZStack (alignment: .top) {
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
VStack (spacing: 20) {
|
VStack (spacing: 20) {
|
||||||
ForEach(vm.classes.indices, id: \.self) { index in
|
ForEach(vm.classes.indices, id: \.self) { index in
|
||||||
@ -43,7 +44,7 @@ struct ScheduleView: View {
|
|||||||
.frame(maxWidth: UIScreen.main.bounds.width - 40, maxHeight: 230)
|
.frame(maxWidth: UIScreen.main.bounds.width - 40, maxHeight: 230)
|
||||||
.background(Color.white)
|
.background(Color.white)
|
||||||
.cornerRadius(20)
|
.cornerRadius(20)
|
||||||
.shadow(color: .black.opacity(0.25), radius: 4, x: 4, y: 4)
|
.shadow(color: .black.opacity(0.25), radius: 4, x: 2, y: 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -51,7 +52,13 @@ struct ScheduleView: View {
|
|||||||
}
|
}
|
||||||
.frame(width: UIScreen.main.bounds.width)
|
.frame(width: UIScreen.main.bounds.width)
|
||||||
.padding(.bottom, 100)
|
.padding(.bottom, 100)
|
||||||
.padding(.top, 10)
|
.padding(.top, 30)
|
||||||
|
}
|
||||||
|
VStack {
|
||||||
|
Rectangle()
|
||||||
|
.frame(width: UIScreen.main.bounds.width, height: 25)
|
||||||
|
.foregroundColor(Color("background").opacity(0.9))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user