{"id":13694059,"url":"https://github.com/TheCodeMonks/NYTimes-iOS","last_synced_at":"2025-05-03T01:30:59.026Z","repository":{"id":37738310,"uuid":"285208137","full_name":"TheCodeMonks/NYTimes-iOS","owner":"TheCodeMonks","description":"🗽 NY Times is an Minimal News 🗞 iOS app 📱 built to describe the use of SwiftSoup and CoreData with SwiftUI🔥","archived":false,"fork":false,"pushed_at":"2023-08-21T18:15:14.000Z","size":17480,"stargazers_count":323,"open_issues_count":1,"forks_count":38,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-06T14:12:54.778Z","etag":null,"topics":["combine","coredata","coredata-swiftui","dependency-injection","hacktoberfest","ios","ios-app","ios-app-development","ios-open-source","ios-swift","mvvm-architecture","singleton","swift5","swiftsoup","swiftui","swiftui-example","swiftui-learning","unittest","viewmodel","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCodeMonks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"devwaseem","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/iamwaseem99"}},"created_at":"2020-08-05T07:02:17.000Z","updated_at":"2025-03-10T08:23:38.000Z","dependencies_parsed_at":"2024-11-12T20:44:17.239Z","dependency_job_id":null,"html_url":"https://github.com/TheCodeMonks/NYTimes-iOS","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeMonks%2FNYTimes-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeMonks%2FNYTimes-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeMonks%2FNYTimes-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeMonks%2FNYTimes-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeMonks","download_url":"https://codeload.github.com/TheCodeMonks/NYTimes-iOS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252130365,"owners_count":21699077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["combine","coredata","coredata-swiftui","dependency-injection","hacktoberfest","ios","ios-app","ios-app-development","ios-open-source","ios-swift","mvvm-architecture","singleton","swift5","swiftsoup","swiftui","swiftui-example","swiftui-learning","unittest","viewmodel","webscraping"],"created_at":"2024-08-02T17:01:23.390Z","updated_at":"2025-05-03T01:30:59.019Z","avatar_url":"https://github.com/TheCodeMonks.png","language":"Swift","readme":"![](https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/Banner%400.25x.png)\n![SwiftUI](https://img.shields.io/badge/Interface-SwfitUI-red)\n![Architecture](https://img.shields.io/badge/Architecture-MVVM-green)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/TheCodeMonks/NYTimes-iOS/blob/master/LICENSE)\n![GitHub forks](https://img.shields.io/github/forks/TheCodeMonks/NYTimes-iOS?label=Fork\u0026style=social)\n![GitHub Stars](https://img.shields.io/github/stars/TheCodeMonks/NYTimes-iOS?label=Stars\u0026style=social)\n![GitHub Watchers](https://img.shields.io/github/watchers/TheCodeMonks/NYTimes-iOS?label=Watchers\u0026style=social)\n\n\n[![Twitter URL](https://img.shields.io/twitter/url?style=social\u0026url=https://github.com/TheCodeMonks/NYTimes-iOS)](http://twitter.com/share?text=Checkout+this+cool+project+made+with+SwiftUI,+by+@iamwaseem99\u0026url=https://github.com/TheCodeMonks/NYTimes-iOS\u0026hashtags=swiftui,ios,iphone,news,github,iosdevelopers,swift,xcode)\n[![Twitter Follow](https://img.shields.io/twitter/follow/iamwaseem99?style=social)](https://twitter.com/iamwaseem99)\n\n\n\n# NYTimes\n\nNY Times is an Minimal News 🗞 iOS application built to describe the use of **SwiftSoup** and **CoreData** with **SwiftUI**.\n\n## ⛓ Features\n\n\u003ctable style=\"width:100%\"\u003e\n  \u003ctr\u003e\n    \u003cth\u003eArticles Loading \u003c/th\u003e\n    \u003cth\u003eBrowse by Category\u003c/th\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/gifs/HomeLoading.gif\" width=250 height=600 /\u003e\u003c/td\u003e \n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/gifs/browseByCategories.gif\" width=250 height=600 /\u003e\u003c/td\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003eBookmark a Article using 3D Touch. \u003c/th\u003e\n    \u003cth\u003eDeleting bookmarks is just one swipe away\u003c/th\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/gifs/bookmark3d.gif\" width=250 height=600 /\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/TheCodeMonks/NYTimes-iOS/blob/master/NYTimes%20Screenshots/gifs/manageBookmark.gif\" width=250 height=600 /\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## 📝 Table of Contents  \n- [Requirements](#requirements)\n- [What you can learn?](#whatyoucanlearn)\n- [Technical Background](#techbackground)\n- [Dependencies](#dependencies)\n- [Project Structure](#projectstructure)\n- [Features](#features)\n- [Contribute](#contribute)\n- [Contact](#contact)\n- [License](#license)\n\n\n\n\n\u003ca name=\"requirements\"/\u003e\n\n## ⚙️ Requirements\n```\niOS 14+\nXcode 12.2 and Up\n```\n\n\u003ca name=\"whatyoucanlearn\"/\u003e\n\n## 📚 What you can learn?\n- You can learn Technologies like\n  - SwiftUI\n  - CoreData\n  - Combine\n  - Web Scraping\n- You can learn various Design patterns from this project such as\n  - Dependency injection\n  - Repository \n  - Singleton\n  - Observers\n- You can learn MVVM Two way binding Architecture for SwiftUI with Combine framework\n\n\u003ca name=\"techbackground\"/\u003e\n\n## 🛠 Technical Background\n- NYTimes App was made using SwiftUI as the Core interface with Two Way Binding MVVM Architecture using Combine framework. \n- CoreData is used to store the Article Bookmarks offline in device so that the user can access it at later time.\n- SwiftSoup is used to scrap the required details from the NYTimes website.\n- The User interface of this app mostly uses the inbuilt iOS components to keep the User experience close to the native feel.\n- Bookmarks can be added as easy as a 3d-touch from Homescreen or a tap in bookmark icon in the detailed article screen.\n- This project was built in the mindset of modularity and good coding patterns. Multiple design patterns like Dependency injection, Repository pattern, Singleton Pattern etc.\n\n\u003ca name=\"dependencies\"/\u003e\n\n## 🔗 Dependencies\n\nThis project uses SPM (Swift Package Manager) as Dependency manager.\n\n - [SwiftSoup](https://github.com/scinfu/SwiftSoup)\n - [Kingfisher](https://github.com/onevcat/Kingfisher)\n - [Reachability](https://github.com/ashleymills/Reachability.swift)\n\n\u003ca name=\"projectstructure\"/\u003e\n\n## ⛓ Project Structure\n\n    NYTimes                 # Root Group\n    .\n    ├── Utilities           # Utilities for Fetching data ans Scraping HTML\n    ├── Extensions          # Some useful extensions\n    ├── Globals             # Contains App constants\n    ├── Persistence         # Coredata files. Contains coredata model and Singleton for ManagedObjectContext\n    ├── Views               # SwiftUI Views\n    ├── Repository          # Repository for Coredata\n    ├── ViewModel           # Viewmodels for SwiftUI Views\n    ├── Model               # Model files\n    |   └── Coredata Model  # Coredata model subclasses\n    |\n    └── Supporting files    # Misc. files like Appdelegate, SceneDelegate.\n\n## Architecture\n    \nThis app uses MVVM architecture.\n\n![MVVM](https://raw.githubusercontent.com/TheCodeMonks/NYTimes-iOS/master/NYTimes%20Screenshots/MVVM.jpeg)\n\n\n\u003ca name=\"contribute\"/\u003e\n\n## ✏️ Contribute\n\nIf you want to contribute to this library, you're always welcome!\n\n### What you can do\nYou can contribute us by filing issues, bugs and PRs.\n\n### Before you do\nBefore you open a issue or report a bug, please check if the issue or bug is related to Xcode or SwiftUI.\n\n### Contributing guidelines:\n- Open issue regarding proposed change.\n- Repo owner will contact you there.\n- If your proposed change is approved, Fork this repo and do changes.\n- Open PR against latest `dev` branch. Add nice description in PR.\n- You're done!\n\n## ☕️ Donation\nIf this project help you reduce time to develop, you can give me a cup of coffee :) \n\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/iamwaseem99)\n\n\u003ca name=\"contact\"/\u003e\n\n## 📱 Contact\n\nHave an project? DM us at 👇\n\nDrop a mail to:- thecodemonksorg@gmail.com\n\n\u003ca name=\"license\"/\u003e\n\n## ⚖️ [License](https://github.com/TheCodeMonks/NYTimes-iOS/blob/master/LICENSE)\n\n```\nMIT License\n\nCopyright (c) 2020 TheCodeMonks\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":["https://github.com/sponsors/devwaseem","https://www.paypal.me/iamwaseem99"],"categories":["News","Swift"],"sub_categories":["Video"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCodeMonks%2FNYTimes-iOS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheCodeMonks%2FNYTimes-iOS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheCodeMonks%2FNYTimes-iOS/lists"}