🚀 A seamless framework for build app from MVC, MVVM, VIPER (etc.) design pattern in iOS world.
- Assemble a VIPER module as fast so far, only need one line code.
- Build-In powerful component event communication.
- Real-Time track Component link đź’« .
- Consider MVx, VIPER (etc.) module as component, using the same transition and event API.
- Add plugin mechanism for custom extension other design pattern module and URL Route.
🍺 Thanks VIPER!
- Xcode 7.0+
- IOS 6.0+
XFLegoVIPER 3.x
is now available (February 2017). Read up on what's new in the docs.
Migration info from 2.x
can be found in the 3.x release notes
pod 'XFLegoVIPER', '~> 3.0'
Copy all files under ~/XFLegoVIPER
folder to your project.
Now you can use template file to create a module which make of stuff class as fast as possible.
Too complicated? See Video
The template files under ~/Template/Architecture
- open path
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates
- copy template files folder
Architecture
in
- Quit Xcode and open again
- Right click a group, select
New File...
- Scrolling to Architecture Section, double click
VIPER
orMVVM
item - Input module name (you need add class prefix), and next, final click
create
action
we have blue folder under select group, what's wrong? Let's fix it:
- Right click blue folder, select
Show in Finder
- Back to Xcode, right click blue folder again, select
Delete
->Remove References
- Back to opened Finder, drag new-folder to Xcode under a group
OK! It Work!
1.x(Chinese) | 2.x(Chinese) | 3.x(Chinese)
see change log
iOS Architecture Patterns English | Chinese
Architecting iOS Apps with VIPER English | Chinese
yizzuide, fu837014586@163.com
XFLegoVIPER is available under the MIT license. See the LICENSE file for more info.