This commit is contained in:
Vladimir Dubovik
2025-03-14 12:47:18 +03:00
parent 8bc7425e2a
commit 99f2bd8a74
6 changed files with 139 additions and 30 deletions

View File

@ -17,7 +17,7 @@ struct ListOfGroupsView: View {
var body: some View {
ScrollView(.vertical, showsIndicators: true) {
ForEach(serchGroupsVM.groups) { item in
if item.name.starts(with: "ВПК") {
if item.name.starts(with: "ВПК") || item.name.starts(with: "мВПК") {
VStack {
Rectangle()
.frame(height: 1)

View File

@ -95,7 +95,7 @@ struct SelectingGroupView: View {
if isLoading {
LoadingView(isLoading: $isLoading)
}
if isFocused {
//if isFocused {
ScrollView(.vertical, showsIndicators: true) {
ForEach(serchGroupsVM.groups) { item in
if item.name.starts(with: "КТ") { //Отображаем только группы(без аудиторий и преподавателей)
@ -133,7 +133,7 @@ struct SelectingGroupView: View {
}
}
}
}
//}
}
.padding(.horizontal, 10)
.background(Color("background"))

View File

@ -94,9 +94,7 @@ struct SelectingVPKView: View {
if isLoading {
LoadingView(isLoading: $isLoading)
}
if isFocused {
ListOfGroupsView(vm: vm, serchGroupsVM: serchGroupsVM, firstFavVPK: firstFavVPK, secondFavVPK: secondFavVPK, thirdFavVPK: thirdFavVPK)
}
ListOfGroupsView(vm: vm, serchGroupsVM: serchGroupsVM, firstFavVPK: firstFavVPK, secondFavVPK: secondFavVPK, thirdFavVPK: thirdFavVPK)
}
.padding(.horizontal, 10)
.background(Color("background"))