Skip to content
makambo13Public

About

UIKit country list with search, paging and async/await, covered by unit and UI tests

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Countries

An iOS app that lists the countries of the world. Search by name or capital.

Run

Needs Xcode 16 or newer and an iOS 18.4 simulator.

git clone https://github.com/makambo13/Walmart.git
open Walmart/walmart.xcodeproj

Test

xcodebuild test -project walmart.xcodeproj -scheme walmart \
  -destination "platform=iOS Simulator,id=<SIMULATOR_ID>"

Get a simulator id with xcrun simctl list devices available. Unit tests cover decoding, the network service and the view model. UI tests run the app on a small bundled list instead of the network (the -UITestStubFeed launch argument, Debug builds only).

Structure

The view controller watches a view model. The view model loads countries through CountryServicing, one async function. CountryService implements it with URLSession, and the tests use fakes.

About

UIKit country list with search, paging and async/await, covered by unit and UI tests

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages