NYTimes

NY Times is a Minimal News newspaper_roll iOS application built to describe the use of SwiftSoup and CoreData with SwiftUI.

Features

ARTICLES LOADINGBROWSE BY CATEGORYBOOKMARK A ARTICLE USING 3D TOUCH.DELETING BOOKMARKS IS JUST ONE SWIPE AWAY

βš™οΈ Requirements

iOS 14+
Xcode 12 beta 3

:warning: This App is compiled with Xcode 12 beta 3. Using other versions of xcode might break the project.

πŸ“š What you can learn?

  • You can learn Technologies like
  • SwiftUI
  • CoreData
  • Combine
  • Web Scraping
  • You can learn various Design patterns from this project such as
  • Dependency injection
  • Repository
  • Singleton
  • Observers
  • You can learn MVVM Two way binding Architecture for SwiftUI with Combine framework

πŸ›  Technical Background

  • NYTimes App was made using SwiftUI as the Core interface with Two Way Binding MVVM Architecture using Combine framework.
  • CoreData is used to store the Article Bookmarks offline in device so that the user can access it at later time.
  • SwiftSoup is used to scrap the required details from the NYTimes website.
  • The User interface of this app mostly uses the inbuilt iOS components to keep the User experience close to the native feel.
  • Bookmarks can be added as easy as a 3d-touch from Homescreen or a tap in bookmark icon in the detailed article screen.
  • This project was built in the mindset of modularity and good coding patterns. Multiple design patterns like Dependency injection, Repository pattern, Singleton Pattern etc.

πŸ”— Dependencies

This project uses SPM (Swift Package Manager) as Dependency manager.

Project Structure

NYTimes                 ## Root Group
.
β”œβ”€β”€ Utilities           ## Utilities for Fetching data ans Scraping HTML
β”œβ”€β”€ Globals             ## Contains App constants
β”œβ”€β”€ Persistence         ## Coredata files. Contains coredata model and Singleton for ManagedObjectContext
β”œβ”€β”€ Views               ## SwiftUI Views
β”œβ”€β”€ Repository          ## Repository for Coredata
β”œβ”€β”€ ViewModel           ## Viewmodels for SwiftUI Views
β”œβ”€β”€ Model               ## Model files
|   └── Coredata Model  ## Coredata model subclasses
|
└── Supporting files    ## Misc. files like Appdelegate, SceneDelegate.

Architecture

This app uses MVVM architecture.

MVVM

πŸ“± Contact

Download Details:

GitHub: http://github.com/TheCodeMonks/NYTimes-iOS

#apps #ios #swift #mobile-apps

A News iOS app built to describe the use of SwiftSoup and CoreData with SwiftUI
13.10 GEEK