Better image caching

This commit is contained in:
Vicnet
2023-09-17 16:37:08 +02:00
parent 3504ce2a25
commit 9088301b15
3 changed files with 37 additions and 28 deletions

View File

@@ -14,7 +14,7 @@ struct RecipeBookView: View {
@State var categoryName: String
@ObservedObject var viewModel: MainViewModel
var body: some View {
ScrollView {
ScrollView(showsIndicators: false) {
LazyVStack {
if let recipes = viewModel.recipes[categoryName] {
ForEach(recipes, id: \.recipe_id) { recipe in