This repository contains a sample app for requesting RESTCountries API.
To install the dependencies
- Open a terminal and cd to the directory containing the Podfile
- Run the
pod installcommand
(For further details regarding cocoapod installation see https://cocoapods.org/)
The app is currently able to load Countries from RESTCountries API, and show it in list form or detailed.
- When the app loads, it will load the Countries from RESTCountries API, and show them in the tableView
- You can also filter the countries, by filling the "Search Country" field. The filter logics are a simple keyword finding inside Country's Name and Subregion.
- Upon selecting a Country, it will open a view with detailed data of the selected Country
- Create new project based on single view app
- Create folders for MVVM pattern
- Add CountriesViewController and Design the UI layout to show Countries List
- Add Networking Layer to handle the RESTCountries API
- Add Models and ViewModel, that will show the Countries List at CountriesViewController
- Add pods: Kingfisher
- Add CountryDetailViewController and Design the UI layout to show the selected country's detail
- Add CountryDetailViewModel to prepare the Country's detailed data
- Add Search Country feature in CountriesViewController
- Add Unit Tests to test the process