SkillAgentSearch skills...

SwiftViper

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

Install / Use

/learn @Nikita2k/SwiftViper
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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:

  • https://www.objc.io/issues/13-architecture/viper/
  • http://mutualmobile.github.io/blog/2013/12/04/viper-introduction/

Swinject:

  • https://github.com/Swinject/Swinject

Related Skills

View on GitHub
GitHub Stars27
CategoryDevelopment
Updated7mo ago
Forks8

Security Score

67/100

Audited on Aug 18, 2025

No findings