The code is a small Swift project, with some third party dependencies managed by Cocoapods, that gets information about countries of the world from here: restcountries.com
The first task is to get the project to build. You should not need to make changed to the source code to achieve this.
Once it builds run the UI and unit tests, and note that there are failures. Your task is to get all the tests to pass without modifying the tests themselves. In other words there are bugs for you to fix. This is where you may need to edit source code.
The app displays a list of countries along with their capital and population. Add fields 'Region' and 'Area' to the UI and populate them with data from the API end point using 'region' and 'area' from the server response.
The completed app should look like this screenshot.
Please don't spend more than 3 hours on the test, we understand that your time is important.
- Clear, easy to read, self-documenting code.
- Clear, concise, and easy to read unit tests.
- Consistency with existing code: Architecturally, semantically, and idiomatically, unless you believe there's a compelling reason to deviate. If so, please document it.
- Commit history: we should be able to follow how you approached the problem, what the iterations were, and how roughly long it took.
- Task completion.