How crismandev/dam-2 works
Recetas App is a small SwiftUI app for browsing an in-memory recipe list, toggling favorites, and adding recipes through a validated form. The main flow starts at the welcome screen, enters the recipe list, and opens registration; saving a valid recipe updates the bound list and dismisses the form. Favorite state is also managed in the list. The graph reflects README-documented behavior and sampled Swift source; it has no persistent store or external service.
Main entry points: MisRecetasView.swift Recipe list · ContentView.swift Screen switch · RegistroView.swift Recipe registration · BienvenidaView.swift Welcome screen
Components 8
App and navigation
- App entry
RecetasApp/RecetasAppApp.swift - Screen switch
RecetasApp/ContentView.swift - Welcome screen
RecetasApp/Vistas/BienvenidaView.swift
Recipe experience
- Recipe list
RecetasApp/Vistas/MisRecetasView.swift - Recipe row
RecetasApp/Vistas/FilaReceta.swift - Recipe registration
RecetasApp/Vistas/RegistroView.swift
Recipe data
- Recipe model
RecetasApp/Modelo/Receta.swift
Other components
- User
Connections 13
- User → App entry: launches
- App entry → Screen switch: shows
RecetasApp/RecetasAppApp.swift - Screen switch → Welcome screen: shows
RecetasApp/ContentView.swift - Screen switch → Recipe list: shows
RecetasApp/ContentView.swift - User → Welcome screen: enters
README.md - Welcome screen → Screen switch: sets state
RecetasApp/ContentView.swift - Recipe list → Recipe row: renders
RecetasApp/Vistas/MisRecetasView.swift - Recipe list → Recipe registration: opens
RecetasApp/Vistas/MisRecetasView.swift - Recipe registration → Recipe list: updates binding
RecetasApp/Vistas/RegistroView.swift - Recipe registration → Recipe model: creates
RecetasApp/Vistas/RegistroView.swift - Recipe list → Recipe model: loads examples
RecetasApp/Vistas/MisRecetasView.swift - Recipe row → Recipe model: displays fields
RecetasApp/Vistas/FilaReceta.swift - User → Recipe list: toggles favorite
README.md