GithubHelp home page GithubHelp logo

thecodemonks / nytimes-ios Goto Github PK

View Code? Open in Web Editor NEW
309.0 11.0 37.0 17.07 MB

๐Ÿ—ฝ NY Times is an Minimal News ๐Ÿ—ž iOS app ๐Ÿ“ฑ built to describe the use of SwiftSoup and CoreData with SwiftUI๐Ÿ”ฅ

License: MIT License

Swift 100.00%
swiftui coredata viewmodel mvvm-architecture swift5 ios-app ios-swift combine swiftui-example swiftui-learning swiftsoup webscraping ios coredata-swiftui dependency-injection singleton ios-app-development unittest ios-open-source hacktoberfest

nytimes-ios's Introduction

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:- [email protected]

โš–๏ธ 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.

nytimes-ios's People

Contributors

ayaysir avatar devwaseem avatar matttx avatar sameersyd avatar spikeysanju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nytimes-ios's Issues

Saving users favorite tags

[Feature Request]
I really love the idea that users can browse articles by tag and they can choose tag by swiping the view at the bottom.
But I think there is an improvement need to be made. Some users might just interested in Space and Science. In that case, the user has to swipe to far-right to click Science and have to swipe far to left again to click the Space tag.

So I think asking users to choose their favourite tag and adding a new view(favoruiteTagView) below the NavigationTitle(NYTimes) which shows their favourite tag would be great. And for some users who might not like newly added view under NavigationTitle, adding one more feature which allows them to show or hide the favoruteTagView would be great
Simulator Screen Shot - iPhone 12 - 2020-11-24 at 19 57 41

OR you can add an option at settings which allows user can reorder the order of the tag.

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.