/XFLegoVIPER

🚀 A seamless framework for build app from MVC, MVVM, VIPER (etc.) design pattern in iOS world.

Primary LanguageObjective-CMIT LicenseMIT

logo

cocoapods language LICENSE version

Note

🚀 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!

VIPER Design Pattern

Component Architecture

Component Architecture

Example

Demo

Demo

Complete project

see BDJProjectExample

Video

Requirements

  • Xcode 7.0+
  • IOS 6.0+

3.x Release

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

Installation

CocoaPods

pod 'XFLegoVIPER', '~> 3.0'

Manual

Copy all files under ~/XFLegoVIPER folder to your project.

❤Using Template❤

Now you can use template file to create a module which make of stuff class as fast as possible.

Too complicated? See Video

1.Find Template files

The template files under ~/Template/Architecture

2.Copy to Xcode path

  1. open path /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates
  2. copy template files folder Architecture in

3.Using xcode create module files

  1. Quit Xcode and open again
  2. Right click a group, select New File...
  3. Scrolling to Architecture Section, double click VIPER or MVVM item
  4. Input module name (you need add class prefix), and next, final click create action

4.Fix blue folder ref

we have blue folder under select group, what's wrong? Let's fix it:

  1. Right click blue folder, select Show in Finder
  2. Back to Xcode, right click blue folder again, select Delete->Remove References
  3. Back to opened Finder, drag new-folder to Xcode under a group

OK! It Work!

VIPER Module

XFLegoVIPER Module Layer

Documentation

1.x(Chinese) | 2.x(Chinese)3.x(Chinese)

Change log

see change log

Reference

iOS Architecture Patterns English | Chinese

Architecting iOS Apps with VIPER English | Chinese

Author

yizzuide, fu837014586@163.com

License

XFLegoVIPER is available under the MIT license. See the LICENSE file for more info.