hotfix
This commit is contained in:
Binary file not shown.
@@ -22,12 +22,12 @@ struct CategoryDetailView: View {
|
|||||||
ScrollView(showsIndicators: false) {
|
ScrollView(showsIndicators: false) {
|
||||||
LazyVStack {
|
LazyVStack {
|
||||||
ForEach(recipesFiltered(), id: \.recipe_id) { recipe in
|
ForEach(recipesFiltered(), id: \.recipe_id) { recipe in
|
||||||
//NavigationLink(value: recipe) {
|
NavigationLink(value: recipe) {
|
||||||
RecipeCardView(viewModel: viewModel, recipe: recipe)
|
RecipeCardView(viewModel: viewModel, recipe: recipe)
|
||||||
.shadow(radius: 2)
|
.shadow(radius: 2)
|
||||||
|
|
||||||
//}
|
}
|
||||||
//.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
selectedRecipe = recipe
|
selectedRecipe = recipe
|
||||||
presentRecipeView = true
|
presentRecipeView = true
|
||||||
@@ -35,13 +35,9 @@ struct CategoryDetailView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.fullScreenCover(isPresented: $presentRecipeView) {
|
|
||||||
RecipeDetailView(viewModel: viewModel, recipe: selectedRecipe!)
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
.navigationDestination(for: Recipe.self) { recipe in
|
.navigationDestination(for: Recipe.self) { recipe in
|
||||||
RecipeDetailView(viewModel: viewModel, recipe: recipe)
|
RecipeDetailView(viewModel: viewModel, recipe: recipe)
|
||||||
}*/
|
}
|
||||||
.navigationTitle(categoryName == "*" ? String(localized: "Other") : categoryName)
|
.navigationTitle(categoryName == "*" ? String(localized: "Other") : categoryName)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
ToolbarItem(placement: .topBarTrailing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user