Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.14 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.14 KB

SwiftViper

Xcode templates for VIPER Architecture in Swift using Swinject as DI framework

What is it?

This repo stores XCode templates, that allows you to create VIPER module in Swift. You can use this template without using and DI frameworks, but I highly recommend you to start using Swinject for dependecy injection.

How to use?

If you are using XCode7 just go to Application folder, browse to the Xcode application icon. Right-click it and choose 'Show Package Contents'. Then browse to: Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application/ and add Viper Module Swift.xctemplate there. That's it. Now you can find your template in XCode -> New File -> iOS -> Source

Add the following line to your project Podfile (we need to specify a commit, as container hierarchy is not released yet)

pod 'Swinject', :git => 'https://github.com/Swinject/Swinject.git', :commit => '48a8504'

References

Viper:

Swinject: