Giter Site home page Giter Site logo

hackernews's Introduction

HackerNews

Overview

This is a simple iOS app built using SwiftUI that fetches and displays the latest articles from Hacker News. Users can browse through the list of articles and view the content of each article in a web view.

Features

  • Fetches data from the Hacker News API using URLSession.
  • Displays a list of articles with their titles and points.
  • Allows users to tap on an article to view its content in a web view.
  • Uses SwiftUI for building the user interface.
  • Utilizes ObservableObject and @Published property wrapper for data binding and reactive updates.
Screenshot 2024-07-01 at 1 34 53 PM Screenshot 2024-07-01 at 1 36 39 PM Screenshot 2024-07-01 at 1 36 54 PM

Installation

  1. Clone this repository to your local machine:

  2. Open the project in Xcode.

  3. Build and run the app on a simulator or a physical device.

Usage

  • Upon launching the app, it will fetch the latest articles from Hacker News and display them in a list.
  • Tap on an article to view its content in a web view.
  • Swipe down to refresh the list of articles.

Dependencies

This project does not have any external dependencies beyond those provided by the iOS SDK.

hackernews's People

Contributors

cyborg-joshi avatar

Watchers

 avatar

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.