Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.34 KB

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.