[Swift学习笔记] Swift 转场动画 Hero库

2021-05-25  本文已影响0人  AdeSon

一款非常火的过场动划开源库,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)]
}

常用的一些第三方库(方便查询)�

  1. IGListKit [UICollectionView 框架] -> pod 'IGListKit', '~> 2.0.0
  2. Realm [移动端数据库] -> pod 'RealmSwift’
  3. Moya [抽象网络层] -> pod 'Moya', ‘8.0.0’
  4. SwiftyJSON [JSON 解析] -> pod 'SwiftyJSON’
  5. Valet [钥匙串帮手] -> pod 'Valet’
  6. Firebase Analytics [分析] -> pod 'Firebase/Core’
  7. AsyncDisplayKit [异步 UI SDK] -> pod 'AsyncDisplayKit’
  8. DZNEmptyDataSet [空状态模式] -> pod 'DZNEmptyDataSet’
  9. Chameleon [扁平化颜色框架] -> pod 'ChameleonFramework/Swift', :git => 'ViccAlexander/Chameleon'
  10. PermissionScope [iOS 权限框架] -> pod 'PermissionScope’
  11. FileKit [文件管理] -> pod 'FileKit', '~> 4.0.0’
  12. SwiftyUserDefaults [user defaults 帮手] -> pod 'SwiftyUserDefaults’
  13. Kingfisher [下载图片] -> pod 'Kingfisher', '~> 3.0’
  14. Hero [自定义试图控制器过渡动画] -> pod 'Hero’
  15. Hedwig [发送 email]
  16. DeviceKit [设备信息] -> pod 'DeviceKit', '~> 1.0’
  17. Charts [图表] -> pod 'Charts’
  18. MGSwipeTableCell [可以滑动的 table cells] -> pod 'MGSwipeTableCell’
  19. RandomKit [随机生成数字] -> pod 'RandomKit', '~> 3.0.0’
  20. ResponseDetective [调适网络请求] -> pod 'ResponseDetective’
  21. Onboard [用户指导页] -> pod 'Onboard’
  22. Quick + Nimble [BDD 测试] -> pod 'Quick’
    pod 'Nimble’
  23. Natalie [从 storyboard 生成代码]
  24. RxSwift [reactive 编程] -> pod 'RxSwift', '~> 3.0’
  25. GDPerformanceView [实时 FPS and CPU 用量] -> pod 'GDPerformanceView-Swift', '~> 1.1.0’
  26. Alamofire [网络] -> pod 'Alamofire', '~> 4.3’
  27. SwiftyStoreKit [app 内购] -> pod 'SwiftyStoreKit’
  28. Timepiece [date 帮手] -> pod 'Timepiece’
  29. CryptoSwift [加密] -> pod 'CryptoSwift’
  30. FSCalendar [日历] -> pod 'FSCalendar’
  31. ImageViewer [模仿 Twitter 的图片查看器] -> pod 'ImageViewer’
  32. PromiseKit [promises] -> pod 'PromiseKit', '~> 4.0’
  33. Ensembles [Core Data 同步] -> pod 'Ensembles’
上一篇下一篇

猜你喜欢

热点阅读