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.
- 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.
-
Clone this repository to your local machine:
-
Open the project in Xcode.
-
Build and run the app on a simulator or a physical device.
- 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.
This project does not have any external dependencies beyond those provided by the iOS SDK.