MVVM + RxSwift + CTMediator + MJRefresh + DZNEmptyDataSet
WhaleFull
?. MVVM + RxSwift + CTMediatror + MJRefresh + DZNEmptyDataSet
English | 简体中文
This is a set of infrastructure based on MVVM + RxSwift
Resources
- Resource module, which mainly deals with image resource and text resource reading.
- Read image resource:
R.image("base_black_back")
- Read text resource:
R.text("base_empty_title")
- Read image resource:
Adapter
-
This module is mainly to encapsulate the base class.
- BaseViewController: Support oc base class, public part.
- VMTableViewController: List base class, internally responsive processing.
- VMViewController: When inheriting this base class, you need to specify
ViewModel
or its subclasses as generics. - ViewModel: Basic view model.
- ViewModelObject: Automatic lazy loading of VM objects of the specified type.
- TableViewModel: Mainly used for
VMTableViewController
data-driven binding model.
-
CocoaPods Install ==>
pod 'WhaleFull/Adapter'
CTMediatror
-
This module mainly solves the cocoapods problem encountered by Swift using this componentized solution.
-
CocoaPods Install ==>
pod 'WhaleFull/CTMediatror'
HBDNavigationBar
-
This module is based on
HBDNavigationBar
secondary encapsulation of the underlying basic Navigation. -
CocoaPods Install ==>
pod 'WhaleFull/HBDNavigationBar'
MJRefresh
-
This module is based on the refresh function of
MJRefresh
encapsulated UITableView. -
CocoaPods Install ==>
pod 'WhaleFull/MJRefresh'
DZNEmptyDataSet
-
This module is based on the empty data display function of the
EmptyDataSet-Swift
package UITableView. -
CocoaPods Install ==>
pod 'WhaleFull/DZNEmptyDataSet'
Remarks
The general process is almost like this, the Demo is also written in great detail, you can check it out for yourself.?
Tip: If you find it helpful, please help me with a star. If you have any questions or needs, you can also issue.
Thanks.?
About the author
- ? E-mail address: yangkj310@gmail.com ?
- ? GitHub address: yangKJ ?
License
WhaleFull is available under the MIT license. See the LICENSE file for more info.
简体中文
基于 MVVM + RxSwift 搭建响应式数据绑定基础架构
Resources
- 资源模块,主要处理图片资源和文本资源读取
- 读取图片资源:
R.image("base_black_back")
- 读取文本资源:
R.text("base_empty_title")
- 读取图片资源:
Adapter
- 该模块主要就是封装基类
- BaseViewController: 支持oc基类,公共部分
- VMTableViewController: 列表基类, 内部采用响应式处理
- VMViewController: 该基类继承时需指定
ViewModel
或其子类作为泛型 - ViewModel: 基础模型
- ViewModelObject: 自动懒加载指定类型的 VM 对象
- TableViewModel: 主要用于
VMTableViewController
数据驱动绑定模型
CTMediatror
- 该模块主要解决Swift采用该组件化方案遇见的cocoapods问题
HBDNavigationBar
- 该模块是基于
HBDNavigationBar
二次封装底层基础Navigation
MJRefresh
- 该模块是基于
MJRefresh
封装UITableView
的刷新功能
DZNEmptyDataSet
- 该模块是基于
EmptyDataSet-Swift
封装UITableView
的空数据展示功能
CocoaPods Install
Ex: 导入项目响应式基类模块
- pod 'WhaleFull/Adapter'
Ex: 导入组件化模块
- pod 'WhaleFull/CTMediatror'
Ex: 导入导航栏基础模块
- pod 'WhaleFull/HBDNavigationBar'
Ex: 导入自动刷新模块
- pod 'WhaleFull/MJRefresh'
Ex: 导入空数据自动展示模块
- pod 'WhaleFull/DZNEmptyDataSet'
觉得有帮助的老哥们,请帮忙点个星 ⭐..
救救孩子吧,谢谢各位老板。
?