Git Product home page Git Product logo

pokedexui's Introduction

PokedexUI

README - SwiftUI Pokédex using MVVM Architecture

Description

This is a simple Pokédex developed in Swift using the SwiftUI framework, following the MVVM (Model-View-ViewModel) architecture. The Pokédex fetches data from the public PokéAPI to display information about different species of Pokémon.

Features

Pokémon List: Displays a paginated list of different Pokémon with their names and identification numbers. MVVM Architecture: The app follows the Model-View-ViewModel architecture for clear organization and separation of responsibilities.

System Requirements

Xcode 12 or later Device/simulator running iOS 14 or later

How to Use

Clone this repository to your local environment. Open the project file Pokedex.xcodeproj in Xcode. Navigate to the Constants folder and edit the APIConstants.swift file to configure the base URL of the PokéAPI, if necessary. Build and run the app on the simulator or device.

MVVM Architecture

The MVVM (Model-View-ViewModel) architecture has been employed in this project to clearly separate responsibilities and enhance code maintainability. Here's an overview of the three main components of the architecture:

Model: Represents the data and business logic. In this case, the models are the structures defining the properties of Pokémon and other related entities.

View: Handles the presentation of data and user interaction. In SwiftUI, Views are built declaratively.

ViewModel: Acts as an intermediary between the Model and the View. It holds presentation logic, data formatting, and interactions. It can also handle data retrieval from the Model.

Credits

This app uses the PokéAPI, which provides the Pokémon data.

Contribution

Contributions are welcome! Feel free to fork this repository, make improvements, and submit a pull request.

License

This project is licensed under the MIT License.

pokedexui's People

Contributors

jonataklabunde avatar matheusferreirazx avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.