News is an iOS app that allows users to view headline or search for news articles from the News API.
Some of the main features include:
- User can view and scroll through a list of headline news articles
- User can tap a cell to view the news article using WebKit
- User can search for news results, and scroll through a list of results
- iOS 16.0 or later
- iPhone 8, iPhone SE (2nd Generation), or newer
To install and set up the app on your own device, follow these steps:
- Xcode 11 or later
- CocoaPods (installation instructions can be found at https://cocoapods.org/)
To clone the repository, open a terminal and enter the following command:
git clone https://github.com/kabirdhillon7/News
To install the dependencies for the app, navigate to the directory where you cloned the repository and run the following command:
pod install
This will install all of the dependencies specified in the Podfile
.
Open the News.xcworkspace
file in Xcode. Make sure that the News
scheme is selected, and then click the "Run" button to build and run the app.
Before you can use the app, you will need to set up your API keys. To do this, follow these steps:
- Go to https://newsapi.org and sign up for an API key.
- In Xcode, open the
APICaller.swift
file and replacekey
with the API key you received.
This app uses the following dependencies:
- Alamofire (MIT License)
- Alamofire Image (MIT License)
- Combine
- WebKit
If you have any questions or feedback, you can reach me through the following channels:
- GitHub: @kabirdhillon7
- LinkedIn: Kabir Dhillon