• Stars
    star
    221
  • Rank 179,773 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

logo

cocoapods language LICENSE version

Note

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

  • 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.
  • Add URL interceptor for intercept special URL before transition.

🍺 Thanks VIPER!

VIPER Design Pattern

Component Architecture

Component Architecture

Example

Demo

Demo

Swift Demo

see Lego-swift

Complete project

see BDJProjectExample

Video

Requirements

  • Xcode 7.0+
  • IOS 6.0+

4.x Release

XFLegoVIPER 4.x is now available (July 2017). 🎉 It's now add Swift (all version) language support. 🎉

Installation

CocoaPods

To integrate XFLegoVIPER into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '8.0'
use_frameworks! # for Swift!!!

target '<Your Target Name>' do
    pod 'XFLegoVIPER', '~> 4.0'
end

Import the XFLegoVIPER.h umbrella header.

  • With use_frameworks! in your Podfile
    • Swift: import XFLegoVIPER
    • Objective-C: #import <XFLegoVIPER/XFLegoVIPER.h> (or with Modules enabled: @import XFLegoVIPER;)
  • Without use_frameworks! in your Podfile
    • Swift: Add #import "XFLegoVIPER.h" to your bridging header.
    • Objective-C: #import "XFLegoVIPER.h"

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.Install the templates

Xcode templates can be found in the repository's /Template/Architecture folder. To install them, open your terminal and run:

cd PATH/TO/REPO
mkdir -p ~/Library/Developer/Xcode/Templates/
cp -R Template/Architecture ~/Library/Developer/Xcode/Templates/

2.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

3.Fix blue folder issue

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

3.x/4.x(Objc) | 4.x(Swift)

Change log

see change log

Reference

iOS Architecture Patterns English | Chinese

Architecting iOS Apps with VIPER English | Chinese

Author

yizzuide, [email protected]

QQ Group:450518005

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

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

More Repositories

1

Milkomeda

Spring extend componets which build from experience of bussiness, let developers to develop with Spring Boot as fast as possible.(基于Spring生态打造的一系列来自业务上的快速开发模块集合。)
Java
122
star
2

BDJProjectExample

一个基于XFLegoVIPER框架编写的完整项目 https://github.com/yizzuide/XFLegoVIPER
Objective-C
86
star
3

XFCrystalKit

A Quartz/UIKit drawing tool for IOS. Include geometry/Context convenient method, image processing, along path drawing, polygon path, gradient fill, 3D inner outer shadow glow render, gauss blur, animation effect, attributed Text Drawing.
Objective-C
69
star
4

XFDialogBuilder

A configable dialog for IOS. Developer can custom mask layer,window size,UI theme,text content,font,layout content,push and pop Animation.
Objective-C
66
star
5

XFSettings

基于UITableView的界面定制,目标是更快更方便地构建设置界面,特点是易维护、可扩展性强。
Objective-C
61
star
6

Lego-swift

Swift version of XFLegoVIPER example.
Objective-C
6
star
7

XFReusedScrollView

Powerful reused scrollView for iOS. Support custom extension layout.
Objective-C
2
star
8

ice-manage-web

基于Milkomeda的Ice模块实现的Redis延迟队列前端管理平台,提供全面的延迟任务监控管理功能。
TypeScript
2
star
9

autoboot-data

Data starter build with autoboot
Python
1
star
10

autoboot-web

Web starter build with autoboot and FastAPI
Python
1
star
11

ice-manage-server

基于Milkomeda的Ice模块实现的Redis延迟队列服务端,拥有全面的延迟任务监控API。
Java
1
star
12

autoboot

IoC with auto config framework
Python
1
star