Giter VIP home page Giter VIP logo

getaround's Introduction

Getaround Mobile Challenge

I propose to create a single view application following the MVP design pattern comprised of a TableView displaying available cars. A second screen would be presented modally when tapping on a car to present detailed information regarding the car and owner. The app supports Darkmode.

I m proposing to construct the UI completely in code, with resuable views. Inline with the challenge guidelines, for time constraints and reliability I m introducing an SPM to load and cache the webImage using Kingfisher. Also I m introducing a Star Rating View added manually as not available as SPM.

To instatiante the view controllers and to decouple the creation of ViewController, I m introducing a Factory protocol with a concrete implementation by ViewControllerFactory. The Factory is owned by the SceneDelegate and passed around via initiliser injection.

LEVEL 1 - fetching and displaying cars

This view is a simple UITableViewController with a custom Cell

I'm introducing the use of DiffableDataSource for this project, I made the dataModel conform to Hashable protocol.

To remove logic from this ViewController, I impleted the MVP design patern. The presenter owns the avavailableCar array and fetches data from the API, then pass back the data via delegate protocol to the ViewController.

I'm using URLSessiondataTask to fetch the data from the API.

Both Presenter and Network Layer have been tested.

LEVEL 2 - display a car details

This view displays a custom UIView with the car image, car details, own image and details. To support all phone sizes, i placed the view elements in a scrollView.

This view il presented modally and can be dismissed by either pushing down or tapping on the close button.

Thank you for your time and the opportunity to complete this challenge.

getaround's People

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.