/EasyKits

常用扩展,分类导航,类似简书的UIScrollView嵌套、数据驱动复杂列表、弹窗、轮播、路由等

Primary LanguageSwiftMIT LicenseMIT

EasyKits

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Swift Package Manager

  • File > Swift Packages > Add Package Dependency
  • Add https://github.com/MengLiMing/EasyKits.git
  • Select "Branch" with "master"

Cocoapods

EasyKits is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EasyKits'

如果你不想整体使用,选择想要添加的功能添加进你的Podfile:

pod 'EasyKits/EasySegmentedView'
pod 'EasyKits/EasyPagingContainerView'

pod 'EasyKits/EasyPopup'
pod 'EasyKits/EasyResponder'

/// 下方数据驱动列表可二选一
pod 'EasyKits/EasyListView' // 基于UITableView封装
pod 'EasyKits/EasyIGListKit' // 基于IGListKit + RxSwift 封装

pod 'EasyKits/EasySyncScroll'
pod 'EasyKits/EasyCarouseView'
pod 'EasyKits/EasyExtension'

pod 'EasyKits/EasyMediator'

/// 设备权限 根据需要导入
pod 'EasyKits/EasyPermission/EasyCamera'
pod 'EasyKits/EasyPermission/EasyLocation'
pod 'EasyKits/EasyPermission/EasyMicrophone'
pod 'EasyKits/EasyPermission/EasyNotification'
pod 'EasyKits/EasyPermission/EasyPhoto'
pod 'EasyKits/EasyPermission/EasyPermissionRx'

组件列表

  • EasyListView: 复杂列表的简单实现,可用于快速构建电商类首页、商品详情、朋友圈等复杂列表 - 可以使用EasyIGListKit替换
  • EasyIGListKit:对IGList+RxSwift的封装,使用更简单,适用于MVVM,降低IGListKit学习成本
  • EasyResponder:简单的事件传递策略,方便图层嵌套多层时的事件传递
  • EasyPopup: 协议实现简单弹窗
  • EasySyncScroll:快速实现UIScrollView嵌套,实现类似简书个人信息页面效果,低耦合 易使用
  • EasyCarouseView:轮播视图,支持横竖两个方向、自定义视图
  • EasySegmentedView:分类导航栏实现,可自定义任何样式的导航栏效果(指示器和Item均可自定义)
  • EasyPagingContainerView:横向滑动切换实现,支持最大显示个数
  • EasyMediator:路由
  • EasyPermission:系统权限统一

DEMO演示

EasySyncScroll EasyCarouseView
EasyListView EasySegmentedView
Nest SyncNest

部分组件线上项目效果

EasyListView+EasySegmentedView+EasyPagingContainerView
EasyListView+EasySegmentedView+EasyCarouseView

Author

MengLiMing, 13014795306@163.com

License

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