Skip to content

karlnr/countries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Assessment

Overview

  • Complete the challenge as a native app solution (Swift)
  • Send a GitHub link and screenshots of the app

Technologies

Try to use the following:

  • Design pattern: MVVM
  • Unit Testing
  • Combine
  • SwiftUI

Programming Exercise

Fetch Country Data

Fetch a list of countries in JSON format from this URL:

https://gist.githubusercontent.com/peymano-wmt/32dcb892b06648910ddd40406e37fdab/raw/db25946fd77c5873b0303b858e861ce724e0dcd0/countries.json

Display Country Information

  • Display all countries in the JSON
  • Order countries by position in the JSON
  • Information to display in each table cell:
    • Name
    • Region
    • Code
    • Capital

Information Format and Layout

-----------------------------------------
|                                       |
| "name" "region"                "code" |
|                                       |
| "capital"                             |
|                                       |
-----------------------------------------

Examples

-----------------------------------------
|                                       |
| United States of America, NA       US |
|                                       |
| Washington, D.C.                      |
|                                       |
-----------------------------------------

-----------------------------------------
|                                       |
| Uruguay, SA                        UY |
|                                       |
| Montevideo                            |
|                                       |
-----------------------------------------

Requirements

  • The user should be able to scroll through the entire list of countries
  • The implementation should be robust, i.e.,
    • handling errors
    • handling edge cases
  • The app should support device rotation

Screenshots

Portrait and Landscape Orientations

Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 40 07 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 42 12 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 40 50 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 41 57

Error and Retry States

Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 44 14 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 42 48 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 48 31 Simulator Screenshot - iPhone 17 Pro - 2025-10-06 at 20 39 47

About

Coding Assessment -- iOS Programming Exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages