源码
一、配置工程
1、删除如下文件
SceneDelegate.swift
ViewController.swift
Main.storyboard
2、删除如下配置
UIMainStoryboardFile
UIApplicationSceneManifest
注:配置最低支持iOS 11,不采用UIScene和Storboard
二、创建文件
1、AppDependency.swift
作为APP的依赖类,避免AppDelegate过于臃肿
2、TabBarReactor/TabBarController
TabBar容器类,包含Trending/Favorite/Personal子控制器
三、代码说明
1、Reactor实现ReactorKit.Reactor
2、Controller实现ReactorKit.View
3、bind方法用于
(1) 将View的行为绑定到Reactor的action
(2) 将Reactor的state绑定到View的UI