This commit is contained in:
Vladimir Dubovik 2024-12-09 12:55:01 +03:00
parent 955c7d9066
commit f59d00016b

View File

@ -10,6 +10,7 @@ import SwiftUI
struct ScheduleView: View {
@ObservedObject var vm: ViewModel
var body: some View {
ZStack (alignment: .top) {
ScrollView(.vertical, showsIndicators: false) {
VStack (spacing: 20) {
ForEach(vm.classes.indices, id: \.self) { index in
@ -43,7 +44,7 @@ struct ScheduleView: View {
.frame(maxWidth: UIScreen.main.bounds.width - 40, maxHeight: 230)
.background(Color.white)
.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)
.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))
}
}
}