This commit is contained in:
Vladimir Dubovik
2025-02-06 13:28:57 +03:00
parent 06416138d9
commit 9f717d83df
17 changed files with 389 additions and 147 deletions

View File

@ -27,7 +27,7 @@ struct ContentView: View {
}
.tag(1)
Text("Settings")
SettingsView(vm: vm)
.tabItem {
Image(systemName: "gear")
Text("Настройки")
@ -35,6 +35,13 @@ struct ContentView: View {
.tag(2)
}
.accentColor(Color("blueColor"))
.onAppear {
let group = UserDefaults.standard.string(forKey: "group")
if let nameGroup = group {
vm.group = nameGroup
vm.fetchWeekSchedule(group: nameGroup)
}
}
}
}