Updated Login Flow
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user