A simple app to hit the NY Times Most Popular Articles API

Overview

MostPopularArticles

A simple app to hit the NY Times Most Popular Articles API and:

  • Show a list of articles newest first(sorted based on date)
  • Shows details when items on the list are tapped.

We'll be using the most viewed section of this API. http://api.nytimes.com/svc/mostpopular/v2/mostviewed/{section}/{period}.json?apikey= sample-key To test this API, For testAPI we used

  • all-sections for the section path component in the URL
  • 7 for period
  • we can update periods using enum Periods

Tools And Resources Used

  • Package - Swift Package Manager, or SPM, lets you manage your project dependencies, allowing you to import libraries into your applications with ease.

Installation

  • Installation by cloning the repository
  • Go to directory
  • use command + B or Product -> Build to build the project
  • Press run icon in Xcode or command + R to run the project on Simulator

Running The Tests Manually

Follow the steps to get test case reports:

  • Enable coverage Data under test schema section:
  • Select the Test Icon by pressing and holding Xcode Run Icon OR press Command+Control+U
  • In the Project Navigator under Test Navigator tab, check test status and coverage

Architecture

This project uses MVVM design pattern and project is fully developed in SwiftUI.

You might also like...
An unofficial supported Swift client library for accessing News API.

An unofficial supported Swift client library for accessing News API.

Swift package for adding API Key requirement to vapor backends.

APIKeyMiddleware Swift package for adding API Key requirement to vapor backends. Features โœ… Supports an array of keys โœ… Supports overriding thrown err

A modern Swift wrapper for Instagram Private API.
A modern Swift wrapper for Instagram Private API.

Swiftagram is a wrapper for Instagram Private API, written entirely in (modern) Swift. Instagram's official APIs, both the Instagram Basic Display API

The official iOS client library for api.video
The official iOS client library for api.video

api.video iOS client api.video is the video infrastructure for product builders.

To practice URLSession to fetch json data from open weather API
To practice URLSession to fetch json data from open weather API

โ›…๏ธ weatherApp-iOS-practice ๐Ÿ“Œ ๊ธฐ๋Šฅ ์ƒ์„ธ ๋„์‹œ ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜๋ฉด ํ˜„์žฌ ๋‚ ์”จ ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์™€ ํ™”๋ฉด์— ํ‘œ์‹œ๋˜๊ฒŒ ๋งŒ๋“ค์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค

A sample application to list the movie from API
A sample application to list the movie from API

MovieManager This is sample application to list the movie from API. Xcode 13.2 S

A lightweight generic networking API written purely in Swift

SwiftyNetworking SwiftyNetworking library is a generic networking library writte

A web API client in Swift built using Async/Await

Get A modern web API client in Swift built using Async/Await and Actors. let cli

TheraForge's Client REST API framework to connect to TheraForge's secure CloudBox Backend-as-a-Service (BaaS)

OTFCloudClientAPI TheraForge's Client REST API Framework to Connect to TheraForg

Owner
null
APIProvider - API Provider Package for easier API management inspired by abstraction

APIProvider Using APIProvider you can easily communicate with all API endpoints

null 1 Apr 21, 2022
๐ŸŒธ Powerful Codable API requests builder and manager for iOS.

This lib is about network requests with blackjack, roulette and craps! Using it you will be able to convert your massive API layer code into an awesom

CodyFire 251 Jan 8, 2023
Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and moreโ€ฆ)

Perfect: Server-Side Swift ็ฎ€ไฝ“ไธญๆ–‡ Perfect: Server-Side Swift Perfect is a complete and powerful toolbox, framework, and application server for Linux, iO

PerfectlySoft Inc. 13.9k Jan 6, 2023
The civilized way to write REST API clients for iOS / macOS

The elegant way to write iOS / macOS REST clients Drastically simplifies app code by providing a client-side cache of observable models for RESTful re

Bust Out 2.2k Nov 20, 2022
Access Xcode Server API with native Swift objects.

Xcode Server SDK Use Xcode Server's API with native Swift objects. First brought to you in Buildasaur, now in an independent project. This is an unoff

Buildasaurs 401 Dec 29, 2022
Postie - The Next-Level HTTP API Client using Combine

Postie - The Next-Level HTTP API Client using Combine Postie is a pure Swift library for building URLRequests using property wrappers.

kula 28 Jul 23, 2022
macOS VM for Apple Silicon using Virtualization API

MacVM macOS Monterey added support for virtualizing macOS with Apple silicon host. This project provides an example project for the setup. Currently o

Khaos Tian 1.2k Jan 4, 2023
A WIP Swift wrapper for Discord's Bot API.

Quickcord Quickcord is a WIP Swift wrapper for Discord's Bot API. Features (As of right now) Connecting the the gateway and identifying. Literally eve

Ben Sova 4 Aug 7, 2021
Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing)

โš  Important Notice: Farewell ws... hello Networking ! Networking is the next generation of the ws project. Think of it as ws 2.0 built for iOS13. It u

Fresh 351 Oct 2, 2022
An iOS library to route API paths to objects on client side with request, mapping, routing and auth layers

WANetworkRouting Developed and Maintained by ipodishima Founder & CTO at Wasappli Inc. Sponsored by Wisembly A routing library to fetch objects from a

null 10 Nov 20, 2022