Skip to content

Latest commit

 

History

History
54 lines (29 loc) · 1.59 KB

README.md

File metadata and controls

54 lines (29 loc) · 1.59 KB

Swift-Clean-Architecture

Template for Swift Clean Architecture from uncle Bob lecture.

Clean Code

This Template is derived from the Clean Architecture proposed by Uncle Bob. They share many common concepts such as the components, boundaries, and models.

http://fernandocejas.com/2015/07/18/architecting-android-the-evolution/

Architectural reactive approach

1

Model-View-Presenter

1

Install

To install the Clean Swift Xcode templates, run:

make install_templates

To uninstall the Clean Swift Xcode templates, run:

make uninstall_templates

How to use it

after you install the template by 'makefile' you will find the templates under custome section.

NOTE : you might faced an issue after creating UseCase or Service since the service must implemnts the UseCase Prorotcol. in order to fix the issue create a new file with name "UseCase.swift" for implementation just copy and past the following code below :

internal protocol UseCase {
    associatedtype Element
    func execute(request : UseCaseRequest) -> Element
    
}


public protocol UseCaseRequest {
    
}

Credit