Skip to content

ZeekrBaha/AssesmentApril

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Countries Search App

A simple iOS application that allows users to search and filter countries by name or capital in real-time.

Demo

Demo

Features

  • Search for countries by name or capital
  • Real-time search results
  • Table view layout using UITableView
  • Loading state indicator during filtering
  • Error handling and empty state
  • Unit tests and UI tests included

Requirements

  • iOS 18.0+
  • Xcode 15.0+
  • Swift 5.9+

Installation

  1. Clone the repository
  2. Open Assesment_wlmrt.xcodeproj in Xcode
  3. Build and run the project

Architecture

The project follows the MVVM (Model-View-ViewModel) architecture pattern and uses UIKit for the user interface. It's organized into the following components:

  • Models: Data models for countries (name, region, code, capital)
  • Views / ViewControllers: UIKit-based UI layout (UITableView, custom cells)
  • ViewModels: Business logic and filtering
  • Services: Network layer for fetching countries via CountriesServiceProtocol

Testing

The project includes unit tests and UI tests for the core functionality.
To run the tests:

  1. Open the project in Xcode
  2. Select the test target
  3. Press Cmd + U or navigate to Product > Test

About

iOS app to search and filter countries by name or capital in real time, built with UIKit and an MVVM architecture in Swift.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages