ListDemo:基于 MVVM + RxSwift 的 GitHub 用户列表演示
这款应用演示如何基于 MVVM 和 RxSwift 架构构建一个 GitHub 用户列表。首先设计视图部分,然后通过 ViewModel 将数据绑定到视图。在 ViewModel 中,定义输入和输出,实现协议即可获取所需数据。
运行要求
- iOS 14.0 及以上版本
- Swift 5.0 及以上版本
安装说明
- 安装 Xcode 命令行工具:
xcode-select --install
- 克隆项目:
git clone https://github.com/jasmine9502/ListDemo.git
- 进入项目目录:
cd ListDemo
- 安装依赖项:
pod install
- 运行项目:快捷键
command + R
ListDemo:一个简单的GitHub用户列表演示
预估大小:694个文件
UIView+MJExtension.h
738B
MJRefreshBackStateFooter.h
680B
MJRefreshBackNormalFooter.h
637B
MJRefreshAutoStateFooter.h
719B
MJRefreshStateHeader.h
921B
UIScrollView+MJExtension.h
937B
MJRefreshAutoFooter.h
1KB
MJRefreshHeader.h
1KB
MJRefreshComponent.h
5KB
MJRefreshFooter.h
1KB
1.18MB
文件大小:
评论区