MainViewModel documentation and image caching improvements

This commit is contained in:
Vicnet
2023-09-16 20:11:02 +02:00
parent fd2c67809a
commit 3504ce2a25
9 changed files with 166 additions and 71 deletions

View File

@@ -16,7 +16,9 @@ struct RecipeCardView: View {
HStack {
Image(uiImage: recipeThumb ?? UIImage(named: "CookBook")!)
.resizable()
.frame(maxWidth: 80, maxHeight: 80)
.aspectRatio(contentMode: .fill)
.frame(width: 80, height: 80)
.clipped()
Text(recipe.name)
.font(.headline)