This commit is contained in:
Vladimir Dubovik
2025-02-27 13:07:19 +03:00
parent b719ab300d
commit 13de6fa302
15 changed files with 118 additions and 66 deletions

View File

@ -2,7 +2,7 @@
// GeneralGroupSettings.swift
// Schedule ICTIS
//
// Created by G412 on 25.02.2025.
// Created by Mironov Egor on 25.02.2025.
//
import SwiftUI

View File

@ -2,7 +2,7 @@
// ScheduleGroupSettings.swift
// Schedule ICTIS
//
// Created by G412 on 25.02.2025.
// Created by Mironov Egor on 25.02.2025.
//
import SwiftUI

View File

@ -115,11 +115,13 @@ struct SelectingGroupView: View {
}
}
}
}
if !isFocused {
} else {
if favGroup != "" {
Button {
UserDefaults.standard.removeObject(forKey: "group")
vm.classes.removeAll()
vm.group = ""
vm.numOfGroup = ""
dismiss()
} label: {
HStack {
@ -133,7 +135,7 @@ struct SelectingGroupView: View {
.background(Color.white)
.foregroundColor(Color.red)
.cornerRadius(10)
.padding(.bottom, UIScreen.main.bounds.height / 11)
.padding(.bottom, 50)
}
}
}

View File

@ -120,6 +120,9 @@ struct SelectingVPKView: View {
if favVPK != "" {
Button {
UserDefaults.standard.removeObject(forKey: "vpk")
vm.vpks.removeAll()
vm.vpk = ""
vm.vpkHTML = ""
dismiss()
} label: {
HStack {
@ -133,7 +136,7 @@ struct SelectingVPKView: View {
.background(Color.white)
.foregroundColor(Color.red)
.cornerRadius(10)
.padding(.bottom, UIScreen.main.bounds.height / 11)
.padding(.bottom, 50)
}
}
}

View File

@ -2,7 +2,7 @@
// SettingsView2.swift
// Schedule ICTIS
//
// Created by G412 on 25.02.2025.
// Created by Mironov Egor on 25.02.2025.
//
import SwiftUI