Advertisement
Xaniasty

Untitled

May 24th, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import SwiftUI
  2.  
  3. struct RecipeDetailView: View {
  4. var recipe: Recipe
  5.  
  6. var body: some View {
  7. VStack {
  8. Image(recipe.filename)
  9. .resizable()
  10. .aspectRatio(contentMode: .fit)
  11. .frame(height: 200)
  12.  
  13. Text(recipe.name)
  14. .font(.title)
  15. .padding()
  16.  
  17. Text(recipe.description)
  18. .font(.body)
  19. .padding()
  20. }
  21. .navigationTitle(recipe.name)
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement