GithubHelp home page GithubHelp logo

kien-hoang / tmdb-movies-mvp-r Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 3.81 MB

Demo for Model View Presenter - Router (MVP-R) by using TMDB-Movies APIs

Ruby 1.03% Swift 98.97%
ios model-view-presenter mvp swift model-view-presenter-router mvp-r dependency-injection tmdb-api tmdb-movie

tmdb-movies-mvp-r's Introduction

Model View Presenter - Router (MVP-R) iOS App

Liked some of my work? Buy me a coffee (or more likely a beer)

Buy Me A Coffee

Features ❤️

Structure Application

Application

Upcoming Movies Edit Movie Update Movie Submit Changes

Model View Presenter - Router (MVP-R) ❤️

  • View - delegates user interaction events to the Presenter and displays data passed by the Presenter
    • All UIViewController, UIView, UITableViewCell subclasses belong to the View layer
  • Presenter - contains the presentation logic and tells the View what to present
    • Usually we have one Presenter per scene (view controller)
    • It doesn't reference the concrete type of the View, but rather it references the View protocol that is implemented usually by a UIViewController subclass
    • It should be a plain Swift class and not reference any iOS framework classes - this makes it easier to reuse it maybe in a macOS application
    • It should be covered by Unit Tests
  • Router - contains navigation / flow logic from one scene (view controller) to another
    • In some communities / blog posts it might be referred to as a FlowController
    • It is usually referenced by the Presenter and weak referenced by the View (UIViewController)

Requirements

  • iOS 12.0+
  • Xcode 11+

Installation

  • To install the app, clone the repository and open the TMDB-Movies-MVP.xcworkspace file in Xcode.

Usage

Contribution

Hoàng Trọng Kiên (Bradley)

Reference

tmdb-movies-mvp-r's People

Contributors

kien-hoang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.