最彻底的组件化
正在进行中, 逐渐完善文档和项目
可能本仓库长期不更新, 但是组件在更新, 经常pod update下关注
组件仓库:https://github.com/NJHu/NJSpecs.git
GitHub: NJHu | 简书: NJHu | Blog: NJHu | Email: [email protected]
实线表示依赖和调用, 虚线表示动态调用
一切皆组件, 组件皆一切
// MARK: - 添加模块
extension NJTabBarController {
private func addChildVcs() -> Void {
let nav0 = NJMediator.sharedMediator.Mediator_DYLiveShow_MainController()
if nav0 != nil {
self.addChildViewController(nav0!)
}
let nav1 = NJMediator.sharedMediator.Mediator_DYTrends_MainController()
if nav1 != nil {
self.addChildViewController(nav1!)
}
}
}
def release_remote_pods
source 'https://github.com/NJHu/NJSpecs.git' # NJ 私有源
pod 'NJKit'
pod 'NJMediator', :source => 'https://github.com/NJHu/NJSpecs.git'
pod 'DYTrends'
pod 'NJMediator_DYTrends'
pod 'DYLiveShow'
pod 'NJMediator_DYLiveShow'
end