A Full News App based on the latest SwiftUI 3/iOS 15 API that fetches latest news from newsapi.org

Overview

SwiftUI NewsAPI App

Alt text

A Full News App based on the latest SwiftUI 3/iOS 15 that fetches latest news from newsapi.org.

Features

The app has several main features:

  1. Fetch news based on categories: general, business, science, technology, health, entertainment, sports
  2. Bookmark articles so it can be persisted even when the app restarts.
  3. Share article using native iOS share sheet UIActivityController.
  4. Read article inside a Safari Webview in modal sheet presentation.
  5. Search news based on the search query you type on the search bar.
  6. Recent search history list.
  7. Suggestion search list.

SwiftUI 3 API:

The SwiftUI 3 APIs used to build the app:

  1. Async Await, Structured Concurrency, and Actors.
  2. Task Lifecycle View Modifer.
  3. AsyncImage.
  4. Refreshable and SwipeAction on List.
  5. Actor to isolate disk persistence.
  6. Crafting Search Experience using Swift Searchable modifier. synchronous local search and async remote search, as well as providing search suggestions.

Getting Started

  • Register for an API Key at https://newsapi.org
  • Paste the key inside NewsAPI.swift file.
  • Download Xcode 13 Beta 2 or later.
  • iOS 15.

Installation

  • Build and run the project using your iOS device with iOS 15 beta installed or use the simulator.

Tutorial

You might also like...
App for displaying VK news feed (VKSDK API). Clean Swift VIP architecture
App for displaying VK news feed (VKSDK API). Clean Swift VIP architecture

VKNewsFeed VKNewsFeed - application for displaying VK news feed with dynamic cells and a collection of images in the post. Data request occurs from th

Full Stack Mobile Application built with Flutter, Java Spring-Boot and MongoDB
Full Stack Mobile Application built with Flutter, Java Spring-Boot and MongoDB

👨‍🍳 Calling all chefs! Pocket Recipes is a recipe storage application with additional features that make organizing your recipes very easy.

A SwiftUI app that fetch images from The Dog API and The Cat API
A SwiftUI app that fetch images from The Dog API and The Cat API

Cat-Or-Dog-App A SwiftUI app that fetch images from The Dog API and The Cat API, then classify the species of dogs or cats with confidence level. The

Simple news iOS app with SwiftUI
Simple news iOS app with SwiftUI

NewsUI Simple news iOS app with SwiftUI 🗞️ which uses NewsAPI to fetch top news headlines The codebase uses following modern keys: SwiftUI Async/Awai

NewsApp- - Built A News App With SwiftUI and Mock Data
NewsApp- - Built A News App With SwiftUI and Mock Data

News APP Built A News App With Swift UI and Mock Data Screen Gif

News App 📱 built to demonstrate the use of SwiftUI 3 features, Async/Await, CoreData and MVVM architecture pattern.
News App 📱 built to demonstrate the use of SwiftUI 3 features, Async/Await, CoreData and MVVM architecture pattern.

Box Feed News App 📱 built to demonstrate the use of following features, SwiftUI 3 Async/Await AsyncImage List Refreshable Swipe Actions Separator Cor

Kinopoisk clone iOS app using Swift, TMDb API, Youtube API and SDWebImage.
Kinopoisk clone iOS app using Swift, TMDb API, Youtube API and SDWebImage.

📱 Kinopoisk clone iOS app using Swift, TMDb API, Youtube API and SDWebImage. App mainly developed to learn about Swift(UIKit), working with JSON, using MVVM architectural pattern.

App Everything in one place (news, weather, stocks and much more)
App Everything in one place (news, weather, stocks and much more)

Dashy Everything in one place (news, weather, stocks and much more) I tried to follow MVVM Pattern, Used Decodable And URLSession instead of thrid-par

A News Feed App Built With Swift
A News Feed App Built With Swift

News Feed App TabBarController'ımızın ilk tabında "newsapi.org"dan gelen veriyi kullanıcıya gösteriyoruz. Başlangıç url'indeki sonuçları gösteren sayf

Comments
  • NewsTabView fires refreshTask on every viewWillAppear

    NewsTabView fires refreshTask on every viewWillAppear

    If you changed the way the app shows the details for news items by navigating to the details view using the NavigationView (instead of presenting Safari sheet), and then return back to the news list, the list gets refreshed which is not the right behavior. I think there should be come control on this point using the FetchTaskToken struct

    opened by murad1981 0
  • Search TextBox will monentarily disappear  in IPad UX SearchTabView

    Search TextBox will monentarily disappear in IPad UX SearchTabView

    After u have added placement: horizontalSizeClass in SearchTabView, clicking on any link on the sidebar and click back to Search, the search textbox will disappear. It will appear if one pull up/down the page. The error seems to be repeatable.

    opened by curiolearner 0
Owner
Alfian Losari
Passionate engineer that loves all about technology and its value. For me when you stop learning, you will stop going forward.
Alfian Losari
NewsAPI-Project - News API Project For iOS

NewsAPI-Project Es necesario descargar y realizar un pod install para ejecutar e

Álvaro Ferrández 0 Feb 3, 2022
A mobile application that presents the news received via NewsAPI to the user. Built with SwiftUI.

?? SwiftUI News App with NewsAPI A mobile application that presents the news received via NewsAPI to the user. Built with SwiftUI. ✅ Features The data

Doğancan Mavideniz 5 Nov 15, 2021
EzNews - A simple and easy to use News app for iOS and iPadOS. It uses NewsAPI as its backend

EzNews This was my first proper Swift app. Its a news app made for iOS and iPadO

Arnav Singhal 4 Apr 30, 2022
small iOS & ipadOS application written in SwiftUI and Combine, that fetches twitter users and tweets using Twitter's api

HomeTwitter Small iOS & ipadOS application written in SwiftUI and Combine, that fetches twitter users and tweets using Twitter's api. This is just a s

Sorin Miroiu 1 May 13, 2022
Weather App with widget that fetches real weather data using the Open Weather API

WeatherExtension App Demo WeatherExtension.mp4 Description Weather App that fetches real weather data using the Open Weather API Getting Started clone

Kayla Golder 0 Oct 21, 2021
MovieZine - An iOS app for all about latest movies using TDMB api and swiftUI

MovieZine MovieZine ia an iOS app for "all about latest movies" using TDMB api a

Aditya Tyagi 3 Apr 23, 2022
LocationsWikipedia - a simple App that fetches a list of locations and displays it at UITableView

Fetching a list of locations or Adding a new location and displaying the list inside a Table View when the user press one of them it will open Wikipedia app and display it inside a Map View.

Mohamd Bitar 2 Jun 8, 2022
A fun project that fetches film data from IMDB

OMDb A fun project that fetches film data from IMDB To Run Get yourself an API key from here. You may need to wait several minutes for your API key to

Rob Nash 0 Oct 31, 2021
Easily create UIViewControllers for news articles similar to those in the News app.

MRArticleViewController This framework allows you to easily setup View Controllers to display News Articles inspired by those from the Apple News App.

Matt Rigdon 104 Apr 18, 2022
A simple iOS App that reads from the Test Flight News API

README Table of contents General info Unit Testing Technologies Revision Updates Setup General info SpaceFlight is a simple app built using the MVVM d

Diego Bustamante 0 Oct 28, 2021