Skip to content

Search for images with a keyword using MVVM clean architecture

Notifications You must be signed in to change notification settings

LH17/MVVM-FlickrImageSearch

Repository files navigation

MVVM-FlickrImageSearch

Search for images with a keyword using MVVM Clean architecture

  • You can search for images using a keyword and it will diplay those images on your screen
  • No third party library has been used
  • URLSession is used for Networking
  • NSCache is used for caching imaghes
  • MVVM Clean architecture is used along with Repository Pattern
  • Dependency Injection Container is used to manage all the dependencies in the app
  • Data Binding is achieved using generics and closures
  • Unit Testing is also implemented

Contents

If you are looking for something specific, you can jump right into the relevant section from here.

  1. Getting Started
  2. Project Structure
  3. Architecture
  4. Unit Tests

Getting Started

System requirements

• Xcode v11.4 beta and above
• Swift 5

Installation

• Install Xcode v11.4 beta
• Clone the project
• Go to Project root folder and type: 'open FlickrImageSearch.xcodeproj'

Project Structure

Screenshot of project structure

Architecture

• MVVM Clean architecture is followed along with Repository Pattern

Screenshot of architecture

Unit Tests

Press Cmd+U in your Xcode to run all the tests. The following files have been unit tested with 100% code coverage

• ImagesSearchViewModelTests
• ImageSearchUseCaseTest
• ImagesSearchRepositoryTest
• NetworkServiceTests

About

Search for images with a keyword using MVVM clean architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published