Giter Site home page Giter Site logo

nytimes_mpa's Introduction

NY Times Most Popular Articles

Popular news fees for NYTimes

Demo for displaying News from NY Times

https://developer.nytimes.com/

Demonstrations

Covers the following:

  • Object Oriented Programming Approach
  • Unit Tests
  • Generic and simple code
  • Leverage today's best coding practices (See Disclaimer)

App Features:

  • Supports Split View (Landscape orientation)
  • Auto layout with Dynamic Cell Resizing
  • Supports API Pagination
  • Dynamic Time Period Configuration
  • Dynamic Section Configuration

Environment

Xcode 11.3.1 Swift 4.2

Design Pattern

Model-View-ViewModel (MVVM) is a structural design pattern that separates objects into three distinct groups:

Models hold application data. They’re usually structs or simple classes. Views display visual elements and controls on the screen. They’re typically subclasses of UIView. View models transform model information into values that can be displayed on a view. They’re usually classes, so they can be passed around as references.

Does this pattern sound familiar? Yep, it’s very similar to Model-View-Controller (MVC). Note that the class diagram at the top of this page includes a view controller; view controllers do exist in MVVM, but their role is minimized.

Build

To build using xcodebuild without code signing

xcodebuild clean build -workspace "NYTimes_MPA.xcworkspace" -scheme "NYTimes_MPA" CODE_SIGNING_ALLOWED=NO

Tests

To run tests using xcodebuild.

xcodebuild -workspace "NYTimes_MPA.xcworkspace" -scheme "NYTimes_MPA" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Plus,OS=13.2' test

LICENSE


MIT License. Distributed under MIT License.

Copyright 2020 Emad Al Nawaisheh

Author


If you wish to contact me

linkedin: https://www.linkedin.com/in/eng-emad-nawisha/

Email : [email protected]

nytimes_mpa's People

Contributors

emadn88 avatar

Watchers

James Cloos 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.