CleanSwift icon indicating copy to clipboard operation
CleanSwift copied to clipboard

Examples and templates for iOS architecture Clean Swift

🧬 CleanSwift

Examples and templates for iOS architecture Clean Swift

Clean Swift Scheme

🗄 Examples

  • Router. Example of work with Routers (Old segue version).
  • Worker. Example of work with Workers and Routers.
  • Unit Tests. Example of write tests for scene.

📦 Templates

SnapKit Scene Template

Template for creating new scene with View (SnapKit), ViewController, Interactor, Presenter, Models, Router, Worker and scene Builder.

Scene Template

Template for creating new scene with Storyboard, ViewController, Interactor, Presenter, Models, Router and Worker.

Xib Scene Template

Template for creating new scene with Xib, ViewController, Interactor, Presenter, Models, Router, Worker and scene Builder.

Unit Tests Template

Template for creating tests files for exists scene.

Install

  1. Open path ~/Library/Developer/Xcode/Templates/File Templates.
  2. Copy folders from XCodeTemplates to File Templates.
  3. Restart XCode.