RayanSaeed / Pixabay

An app built with SwiftUI using Clean Architecture (VIP) that uses Pixabay's Image API to display some searched images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pixabay

An app for searching images via the Pixabay API built with Clean Swift.

The Clean Architecture (VIP) is an architecture pattern that separates objects into three distinct types mainly made up of View, Interactor and Presenter

image

With VIP, the responsibilities are divided equally where

View delegate user interaction to Interactor. Interactor contains the business logic and sends the response to Presenter. Presenter parse the data and return to View. As the app grows larger, you will have additional components such as Router and Worker. Router takes care of all the navigation logics navigation logic while Worker helps lessen the burden of Interactor by performing task such as network call, implementing 3rd party SDK and etc.

Do note that Worker should be easily used by multiple interactors.

Architecture Diagram using Draw.io

Here I have included a representation of my project that follows the Clean Swift architecture

Pixabay drawio

About

An app built with SwiftUI using Clean Architecture (VIP) that uses Pixabay's Image API to display some searched images.

License:MIT License


Languages

Language:Swift 100.0%