Code Monkey home page Code Monkey logo

pokemonlist's Introduction

PokemonList-AnalyticaHouseAssignment

  • A simple iOS app developed using UIKit and not prefer to use of XIB and Storyboard.

  • Development choises: Developed without any external framework

  • Applied MVVM (Model View Viewmodel) approach as an architectural pattern.

  • The application has two screens: the first one is a Table View with a list of Pokemon, the second is a detail screen of the pokemon that you tapped on the first screen.

  • Used a Coordinator to move between my views.

  • The application coordinator instanciate the UINavigationController and the root view controller; meanwhile the ViewControllerCoordinator pushes the PokemonDetailsView.

  • For the first screen I used a simple Table View and I implemented an infinite scroll: 40 items are loaded at a time..

  • Using the UITableViewDataSourceePreftching I was able to set the conditions so that new data can be fetched.

  • To take the data that populated my application I used the API Rest services offered by the site pokeapi.co .

  • In particular I used only 2 services: the first gives me the list of all pokemon (divided into pages to implement the infinite scroll and then load the pages only when required) the second instead gives me all the pokemon's data.

  • Fetching and parsing operations (from JSON to our data structure) are all entrusted to the Parser is responsible for taking the data and converting it into our data structure.

  • I decided to entrust the responsibility for navigation between the various screens, and their actual creation, to the Coordinator.

  • The ApplicationCoordinator is the one that creates the root view, inserting it in an UINavigationController.

  • The ViewControllerCoordinator instead, is responsible for instantiate PokemonDetailsViewController tap on the given cell.

w8ZJLtJbmuph

pokemonlist's People

Contributors

edabarutcu 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.