一款非常火的过场动划开源库,github 4000+ Strar,叫 "Hero"。
https://github.com/lkzhao/Hero
在视图控制器级别,Hero提供了几个模板转换,您可以通过heroModalAnimationType、heronnavigationanimationtype和herotabaranimationtype设置这些转换。这些可以用作自定义转换的基础。结合Hero修饰符,使您自己独特的过渡。
View Controller 1
greyView.hero.id = "skyWalker"
View Controller 2
source-swift
self.hero.isEnabled = true
greyView.hero.id = "skyWalker"
// collectionView is the parent view of all red cells
collectionView.hero.modifiers = [.cascade]
for cell in redCells {
cell.hero.modifiers = [.fade, .scale(0.5)]
}
常用的一些第三方库(方便查询)�
- IGListKit [UICollectionView 框架] -> pod 'IGListKit', '~> 2.0.0
- Realm [移动端数据库] -> pod 'RealmSwift’
- Moya [抽象网络层] -> pod 'Moya', ‘8.0.0’
- SwiftyJSON [JSON 解析] -> pod 'SwiftyJSON’
- Valet [钥匙串帮手] -> pod 'Valet’
- Firebase Analytics [分析] -> pod 'Firebase/Core’
- AsyncDisplayKit [异步 UI SDK] -> pod 'AsyncDisplayKit’
- DZNEmptyDataSet [空状态模式] -> pod 'DZNEmptyDataSet’
- Chameleon [扁平化颜色框架] -> pod 'ChameleonFramework/Swift', :git => 'ViccAlexander/Chameleon'
- PermissionScope [iOS 权限框架] -> pod 'PermissionScope’
- FileKit [文件管理] -> pod 'FileKit', '~> 4.0.0’
- SwiftyUserDefaults [user defaults 帮手] -> pod 'SwiftyUserDefaults’
- Kingfisher [下载图片] -> pod 'Kingfisher', '~> 3.0’
- Hero [自定义试图控制器过渡动画] -> pod 'Hero’
- Hedwig [发送 email]
- DeviceKit [设备信息] -> pod 'DeviceKit', '~> 1.0’
- Charts [图表] -> pod 'Charts’
- MGSwipeTableCell [可以滑动的 table cells] -> pod 'MGSwipeTableCell’
- RandomKit [随机生成数字] -> pod 'RandomKit', '~> 3.0.0’
- ResponseDetective [调适网络请求] -> pod 'ResponseDetective’
- Onboard [用户指导页] -> pod 'Onboard’
-
Quick + Nimble [BDD 测试] -> pod 'Quick’
pod 'Nimble’ - Natalie [从 storyboard 生成代码]
- RxSwift [reactive 编程] -> pod 'RxSwift', '~> 3.0’
- GDPerformanceView [实时 FPS and CPU 用量] -> pod 'GDPerformanceView-Swift', '~> 1.1.0’
- Alamofire [网络] -> pod 'Alamofire', '~> 4.3’
- SwiftyStoreKit [app 内购] -> pod 'SwiftyStoreKit’
- Timepiece [date 帮手] -> pod 'Timepiece’
- CryptoSwift [加密] -> pod 'CryptoSwift’
- FSCalendar [日历] -> pod 'FSCalendar’
- ImageViewer [模仿 Twitter 的图片查看器] -> pod 'ImageViewer’
- PromiseKit [promises] -> pod 'PromiseKit', '~> 4.0’
- Ensembles [Core Data 同步] -> pod 'Ensembles’