Skip to content

πŸ—½ NY Times is an Minimal News πŸ—ž iOS app πŸ“± built to describe the use of SwiftSoup and CoreData with SwiftUIπŸ”₯

License

Notifications You must be signed in to change notification settings

TheCodeMonks/NYTimes-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

35 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SwiftUI Architecture License: MIT GitHub forks GitHub Stars GitHub Watchers

Twitter URL Twitter Follow

NYTimes

NY Times is an Minimal News πŸ—ž iOS application built to describe the use of SwiftSoup and CoreData with SwiftUI.

β›“ Features

Articles Loading Browse by Category
Bookmark a Article using 3D Touch. Deleting bookmarks is just one swipe away

πŸ“ Table of Contents

iOS 14+
Xcode 12.2 and Up
  • 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
  • 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.

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

NYTimes                 # Root Group
.
β”œβ”€β”€ Utilities           # Utilities for Fetching data ans Scraping HTML
β”œβ”€β”€ Extensions          # Some useful extensions
β”œβ”€β”€ 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

If you want to contribute to this library, you're always welcome!

What you can do

You can contribute us by filing issues, bugs and PRs.

Before you do

Before you open a issue or report a bug, please check if the issue or bug is related to Xcode or SwiftUI.

Contributing guidelines:

  • Open issue regarding proposed change.
  • Repo owner will contact you there.
  • If your proposed change is approved, Fork this repo and do changes.
  • Open PR against latest dev branch. Add nice description in PR.
  • You're done!

β˜•οΈ Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Have an project? DM us at πŸ‘‡

Drop a mail to:- thecodemonksorg@gmail.com

βš–οΈ License

MIT License

Copyright (c) 2020 TheCodeMonks

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.