SwiftViper
Xcode templates for VIPER Architecture in Swift using Swinject as DI framework
Install / Use
/learn @Nikita2k/SwiftViperREADME
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
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
Security Score
Audited on Aug 18, 2025
