Giter Club home page Giter Club logo

airlines's Introduction

Airlines

This is a simple app created to demonstrate the Clean Swift Architecture application in a iOS project.

Clean Swift Architecture (VIP)

The Clean Swift is an architectural pattern based on Uncle Bob's Clean Architecture. It's commonly used in robust long-running applications, as the SOLID principles of clean architecture provide code for great maintainability and scalability.

Clean Swift is based on the VIP cycle, which consists of a one-way cycle consisting of three elements:

  • ViewController: Responsible for displaying information on the screen and listening for user events;

  • Interactor: Responsible for all data processing and business logic of the scene, being able to rely on auxiliary components called Services or Workers that are responsible for making HTTP calls;

  • Presenter: Responsible for formatting the models sent by the Interactor in order to facilitate their display on the screen.

In this cycle, information flows in a unidirectional way. Thus, when the ViewController requests an action from the Interactor, it obtains and processes the necessary data according to the application's business rules and sends it to Presenter. Presenter, in turn, formats the received data and sends it to the ViewController, which will be responsible for displaying the data on the user screen.

References

Clean Swift Oficial Website

Introducing Clean Swift Architecture

Coordinators Essential Tutorial

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.