Skip to content

SalehAlDhobaie/Swift-Clean-Architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template for Swift Clean Architecture from uncle Bob lecture.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published