Skip to content

This is a simple Hacker News app built with SwiftUI. It fetches and displays the latest news from Hacker News along with the popularity (points) of each title.

Notifications You must be signed in to change notification settings

adnanAlKharfan/hacker-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hacker News App

This is a simple Hacker News app built with SwiftUI. It fetches and displays the latest news from Hacker News along with the popularity (points) of each title.

API Used

Features

  • Fetches the latest news from Hacker News
  • Displays the title and points (popularity) of each news item
  • Easy navigation with SwiftUI's NavigationView

How to Run

  1. Install Xcode: Make sure you have Xcode installed on your Mac.
  2. Open the Project: Open sixsteen course app.xcodeproj in Xcode.
  3. Run the App: You can run it on your physical device or on the simulator.

Example

Project Structure

  • ContentView.swift: The main view displaying the list of news.
  • Api.swift: Contains the API call logic to fetch news from the Algolia API.
  • dec.swift: Data models for decoding JSON response from the API.
  • UrlPage.swift: A placeholder view (for potential future use).
  • sixsteen_course_appApp.swift: The entry point of the SwiftUI app.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

Contact

For any inquiries or support, please contact Adnan AlKharfan.

About

This is a simple Hacker News app built with SwiftUI. It fetches and displays the latest news from Hacker News along with the popularity (points) of each title.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages