Native App Development Class
Project Overview
My goal with this project was to integrate the MealDB Api to display recipes from different cuisines in an organized, intuitive Swift UI application.
The Problem
It can be difficult for users to discover new recipes from different cuisines. I wanted to make an application that made it easy for users to find new recipes to try from different cuisines without being intimidated. The list format allows the user to see a variety of recipes in a simple view. My goal for this project was to integrate the API to retrieve a list of recipes, then query it again to retrieve the specific information for each recipe.
The Solution
When creating this project, I initially only hard-coded one category for recipes, which allowed me to troubleshoot the API. I learned how to make different structs that aligned with the JSON response I received. After successfully retrieving the list of recipes, I wanted to take it one step further and query the API again to retrieve information for each recipe. This required me to take the recipe ID from the initial JSON response and place it in another query to get the recipe information. From there, I placed the results in another JSON response and displayed them in a view, which you could access from the list of recipes.



After I successfully queried my API (twice!) I wanted to add more cuisine options for the user to explore. I added some simple buttons where the user could look at all the recipes the API had to offer for a certain cuisine. I then also added styling, going for an Art Deco font because it reminded me of fancy restaurants.
Results
I learned a lot from this project. I really enjoyed working with the API because I could store a lot of content without having to manually add it in. In future iterations, I’d like to add more details to the buttons and a page where users can save recipes they find.


