Code Monkey home page Code Monkey logo

get-news-app's Introduction

Get News App

An iOS app to retrieve and display the latest headlines from the News API

Description

This app grabs the lastest news headlines from the News API along with associated images by various methods. Users are able search for desired articles within the News API or get headlines based on the category. They also have the option to view the current top headlines from a list of news sources.

Features

  • Home Screen - get news by category or search for news
  • News Sources Screen - get news by sources with ability to filter desired sources and sort by its category with animation via UICollectionViewDiffableDataSource
  • Headlines Screen - displays a list of headlines along with their images with pagination of up to 100 headlines (API's limit)
  • Webview Screen - renders the webpage of the headline

App Screenshots

Run Locally

Project code can be viewed locally and run in Xcode's simulator by cloning or downloading this repo.

Built With

Author

License

This project is licensed under the MIT License - see the LICENSE file for details

Note

Without your own person API key from the News API site this app will not work!

Inside this project contains a file called "Secret.swift", which contains my personal API key to the News API. When cloning this project you must create that file and add your own API key to be able to run the project. You can get a free API key from the News API website.

Also, if the file "Secret.swift" is already there when cloning this project, delete it, save, and recreate that file along with the following code snippet:

Inside your Secret.swift file you should add the following:

enum Secret: String {
case apiKey = "your-unique-personal-API-key-goes-inside-these-quotes!!"
}

get-news-app's People

Contributors

caocmai avatar

Stargazers

 avatar  avatar

Watchers

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