top of page
    CD Player_edited.png

    Dessert iOS App

    Swift, SwiftUI

    iOS app to display dessert recipes from themealdb

    introduction_bg.png

    ree

    Description

    iOS App to display desserts from themealdb.com

    Getting Started

    1. The app is compatible with the latest XCode (version 14.0 or above)

    2. Download the project files from the repository git clone https://github.com/elainechan01/dessert-recipes-ios.git

    3. Open the project files in XCode

    4. Run the active scheme

    Architecture

    Project is implemented using the Model-View-ViewModel (MVVM) architecture.

    Data Flow

    Structure

    - Managers
        |__APIClient
        |__Cache
    - Models
    - Resources
    - ViewModels
    - Views
        |__Utilities
    
    • Managers: Files to manage network data

    • Models: Files to structure network data

    • Resources: Non-code files used by project

    • ViewModels: Files to implement business logic between views and models

    • Views: Files to display data

    Running Tests

    The app can be tested using the built-in framework XCTest. Tests have been created and can be run from DessertRecipesTests.swift

    • testBuildFilterUrl

    • testBuildFilterDessertsUrl

    • testBuildLookupDessertDetailUrl

    • testFilterDesserts

    • testLookupDessertDetail

    • testFilterDessertsAsPublished

    • testLookupDessertDetailAsPublished

    API

    TheMealDB

    Method

    Endpoint

    Parameters

    Description

    GET

    filter.php

    c=Dessert

    Filters meals

    GET

    lookup.php

    i=<idMeal>

    Lookup meal details


    bottom of page