Updated Login Flow

This commit is contained in:
Vicnet
2023-11-29 17:44:10 +01:00
parent 17678dea5f
commit 22eeb8362d
10 changed files with 601 additions and 371 deletions

View File

@@ -10,7 +10,7 @@ import SwiftUI
struct MainView: View {
@ObservedObject var viewModel: MainViewModel
@ObservedObject var userSettings: UserSettings
@StateObject var userSettings: UserSettings = UserSettings()
@State private var selectedCategory: Category? = nil
@State private var showEditView: Bool = false
@@ -37,6 +37,10 @@ struct MainView: View {
.padding(7)
}
if viewModel.categories.isEmpty {
Text("Pull to refresh.")
}
// Categories
ForEach(viewModel.categories) { category in
if category.recipe_count != 0 {