Top News is an iOS application built using Swift that allows users to stay updated with the latest news from around the world. The app fetches news articles from the NewsAPI, providing users with up-to-date information on various topics and categories.
- Browse news by country and category
- View headlines and detailed articles
- Smooth, responsive UI with table view for news articles
- iOS 14.0 or later
- Xcode 12 or later
- A valid NewsAPI API key
git clone https://github.com/anastasia-lobareva/TopNews.git- Visit NewsAPI.
- Sign up or log in to your account.
- Generate an API key from your account dashboard.
- Open the project in Xcode.
- Navigate to the Constants.swift file located in the project directory.
- Replace the placeholder string with your API key:
struct Constants {
static let apiKey = "YOUR_API_KEY_HERE"
}- Open the project in Xcode.
- Select your target device or simulator.
- Build and run the app using Cmd + R.
- On app launch, you'll be prompted to select a country for viewing news articles.
- Browse through the latest headlines.
- Tap on any article to view more details.
- Swift
- UIKit
- NewsAPI for fetching news articles
URLSessionfor network requestsTableViewfor displaying news articles
This project is licensed under the MIT License.
Contributions are welcome! Please submit a pull request or open an issue if you'd like to improve the app or report a bug.
NewsAPI for providing the news data.