This is a native iOS app built with SwiftUI that allows users to browse recipes using the MealDB API. The app fetches data from the API to display a list of meals in various categories, and provides detailed information for each meal.
- Browse and explore a variety of recipes from different categories, including:
- Beef
- Breakfast
- Chicken
- Dessert
- Goat
- Lamb
- Miscellaneous
- Pasta
- Pork
- Seafood
- Side
- Starter
- Vegan
- Vegetarian
- Sort meals alphabetically for easy navigation
- Access detailed information about each recipe, including:
- Meal name
- Instructions
- Ingredients with measurements
- Origin country
- Ensure you have the latest version of Xcode installed on your machine.
- Clone this repository to your local system or download the ZIP file.
- Open the project in Xcode.
- Run the project in the iOS Simulator or on a physical iOS device.
- On the home screen, you will see various categories of meals.
- Tap on a category card to view the meals in that category.
- Select a meal card to open a sheet displaying the recipe details.
- In the recipe sheet, you can find the following information:
- Image of the meal (placeholder image, replace with actual meal image)
- Name of the meal
- Origin country
- List of ingredients and their measurements
- Step-by-step instructions for preparing the meal
The app utilizes the following endpoints from the MealDB API:
All Categories Endpoint:
- Endpoint: https://themealdb.com/api/json/v1/1/categories.php
- Fetches the list of categories
Category Meals Endpoint:
- Endpoint: https://themealdb.com/api/json/v1/1/filter.php?c=CATEGORY_NAME
- Fetches the list of meals in the specified category.
Meal Details Endpoint:
- Endpoint: https://themealdb.com/api/json/v1/1/lookup.php?i=MEAL_ID
- Fetches the meal details based on the provided meal ID.
Home/Categories View
Meal View
Recipe View