This project demonstrates an iOS application that fetches news articles from an API and displays them in a dynamically updated slider based on various categories such as All, Politics, Technology, and Weather. The project follows the MVVM (Model-View-ViewModel) design pattern and utilizes several popular libraries for network requests, image loading, and layout management.
- Dynamic slider with categories (All, Politics, Technology, Weather)
- Search functionality (UI component only)
- Images loaded from provided image URLs
- Detail view on tapping an article image
- TagListView: For fast Taglist integration
- SDWebImage: This library provides an async image downloader with cache support
- Clone the repository:
git clone https://github.com/your-username/ios-dev-test-task.git
- Navigate to the project directory:
cd ios-dev-test-task
- Install dependencies using CocoaPods:
pod install
- Open the project in Xcode:
open ios-dev-test-task.xcworkspace
- Model: Contains data models for the news articles
- View: Contains UI components and layout files
- ViewModel: Contains logic for fetching data and updating the views
- Networking: Contains network service for API requests
- Run the app on an iOS simulator or device.
- The app will display a slider with categories (All, Politics, Technology, Weather).
- Select a category to see the relevant news articles.
- Tap on an article image to view the details.