Moccasin provides VIPER Xcode templates to bootstrap modules and components of for use with Swinject, Cobra and Gorgon
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Generic/Properties.xctemplate
Swift 2
Swift 3
CONTRIBUTION.md
LICENSE
README.md
install-templates.sh

README.md

Moccasin

Moccasin leverages Xcode templates to scaffold VIPER-based modules, to be used with Swinject, Cobra and Gorgon.

VIPER is an architecture that divides an applications logic into distinct layers of responsibility which makes it easier to isolate dependencies and test interactions. Moccasin templates provide the skeleton implementation of VIPER that leverages dependency injection via Swinject, application feature routing and configuration via Cobra, and application event delegation via Gorgon.

Features

  • Wire up VIPER modules via dependency injection in 1 click
  • Provides uniform base implementations for all components and services
  • Shared base coding styles and naming conventions

See Boa, a sample app written in Swift, for details.

Requirements

  • iOS8+
  • Xcode 8+

Installation

Simply run install-templates shell script.

Documentation

Moccasin leverages Xcode templates to scaffold VIPER modules, consisting of the following types: View, Interactor, Presenter, Router, Styler, Assembler, Feature and Storyboard. To see how these are used, see Boa sample application.

TODO

  • Provide contribution guidelines