sreshetnyak / Xcode-File-Templates

Xcode File Templates for automatic files creating

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode File Templates

Xcode File Templates for automatic files creating

Presented Templates:

  • Base MVVM Templates
  • Base Project Setup Templates (extensions and network & database managers)
  • MVVM + Repository Pattern Templates
  • MVVM + Repository Tests
  • RxVIPER Templates Pattern
  • RxVIPER Test for Presenter based on XCTestCase

Template Requirements:

Templates Contains:

Base Project Setup:

  • Common and useful Extension
  • Base Network Layer
  • Realm Storage Manager
  • Routing system (including animators & transitions)
  • StoryboardInitializable & CellInizializable

Base MVVM Templates:

  • ViewModel.swift
  • ViewController.swift
  • View.storyboard
  • Builder.swift

MVVM + Repository Pattern Templates:

Base:

  • ViewModel.swift
  • ViewController.swift
  • View.storyboard
  • Builder.swift
  • Router.swift
  • Route.swift
  • Repository.swift

Appendix | Unit Tests:

  • ViewModelTests.swift

RxVIPER Templates:

Base:

  • Presenter.swift
  • ViewController.swift
  • View.storyboard
  • Builder.swift
  • Router.swift
  • Route.swift
  • Iteractor.swift

Appendix | Unit Tests:

  • PresenterTests.swift

Setup Guide:

Using script | With adding templates in one folder

Only need execute this command in terminal:

sudo swift install.swift

You should see one of such kind of output message:

βœ…  Template installed succesfully πŸŽ‰. Enjoy it πŸ™‚"
βœ…  Template already exists. So has been replaced succesfully πŸŽ‰. Enjoy it πŸ™‚

Manual | With Saving Folder structure

  1. Open folder Templates/File Template from downloaded or cloned repository.
  2. Go to direction ~/Library/Developer/Xcode/ and set folders with templates
  3. If direction ~/Library/Developer/Xcode/ already has folder Templates and File Templates, just use the following folder named MVVM Templates and paste it into File Templates folder.

Usage guide:

  • CMD+N -> and choose Template which you need
  • New -> File -> and choose Template which you need

Author

- Ivan Fomenko

About

Xcode File Templates for automatic files creating


Languages

Language:Swift 100.0%