Giter VIP home page Giter VIP logo

deckofcards's Introduction

Magma iOS Code Test

  • Using the Deck of Cards API (api endpoints provided below) in Xcode, create an iPhone application thatcreates a deck of cards on the API, then pulls all fifty two cards from that deck into a tableview withmultiple sections.
  • Ability to display preview of the card image.

Minimum Requirements

  • Load images async.
  • Architect the application in MVVM.
  • Show an example of KVO implementation.
  • Create a repo on your github, push your code when completed, and send us the github repo link.

Initial View Controller

  • Embed the Initial View Controller inside a navigation controller with the title "Deck of Cards".
  • Card data should be presented on a tableview with a custom cell which contains the card name & image.
  • Sort the card values in every section from Ace to King (ie: Ace ,Two, Three etc.)
  • Separate the tableview sections into Clubs, Hearts, Spades, Diamonds.
  • Make sure the section header title is visible.

Preview View Controller

  • When a table cell is selected from the Initial View Controller, MODALLY display a Preview View controllerwith a navigation bar that displays the card title in the navigation bar.
  • Preview View Controller should also be implemented in MVVM.
  • Preview View Controller should contain a full screen imageView displaying the selected card image.
  • Add a left bar button item in the navigation bar that dismisses the Preview View Controller.
  • Add a left bar button item in the navigation bar that dismisses the Preview View controller.

API

Create Deck on API (returns a deckID)

  • https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1

Draw cards from deck on API

  • https://deckofcardsapi.com/api/deck/<deckID>/draw/?count=52

Extra Credit

  • Implement the whole application in RxSwift without using Storyboards/ XIBs

deckofcards's People

Contributors

netspencer avatar

Stargazers

 avatar

Watchers

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