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

@@ -25,8 +25,8 @@ struct RecipeDetailView: View {
.frame(height: 300)
.clipped()
} else {
Color.blue
.frame(height: 300)
Color("ncblue")
.frame(height: 150)
}
if let recipeDetail = recipeDetail {
@@ -80,8 +80,7 @@ struct RecipeYieldSection: View {
Text("Servings: \(recipeDetail.recipeYield)")
Spacer()
}.padding()
.background(Color("accent"))
.clipShape(RoundedRectangle(cornerRadius: 10))
}
}