Download Latest Version Yi Zhi Chi Lottie De Yi Lai Zui Xin Ban Ben , Zhi Chi Zhi Ding Xuan Ran Mo Shi source code.tar.gz (3.7 MB)
Email in envelope

Get an email when there's a new version of CYLTabBar Controller

Home / 1.99.20
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-04-28 2.1 kB
Yi Zhi Chi Lottie De Yi Lai Zui Xin Ban Ben , Zhi Chi Zhi Ding Xuan Ran Mo Shi source code.tar.gz 2026-04-28 3.7 MB
Yi Zhi Chi Lottie De Yi Lai Zui Xin Ban Ben , Zhi Chi Zhi Ding Xuan Ran Mo Shi source code.zip 2026-04-28 4.0 MB
Totals: 3 Items   7.7 MB 0

CYLTabBarController 1.99.20以上版本,已对 Lottie 的依赖版本, 进一步细化, 采用二分法: ObjC 和Swift版本,进行区分。ObjC指定 ~>2.5.3 , Swift版本指定>=4.0.0。CYLTabBarController 内部 , 可以根据依赖版本的不同,执行不同逻辑。同时保持API接口不变。

用法见GitHub Demo演示。

#pod 'CYLTabBarController', '~> 1.99.20'        # 默认不依赖Lottie
#pod 'CYLTabBarController/LottieObjectiveC', '~> 1.99.20'  # 依赖Lottie Objective-C库
#pod 'CYLTabBarController/LottieSwift', '~> 1.99.20'  # 依赖Lottie Swift库

自我评估,已经可以满足大部分场景, 如需要更精细的 Lottie 版本区分, 请提issue, 描述清楚场景, 我排期开发。

注意LottieSwift支持的iOS版本最低为iOS13

s.ios.deployment_target = '13.0'

如果你的项目支持iOS12则不能使用Lottie Swift 版本。

你在选择时应该遵循这样的规则: Lottie OC版本仅在需要支持iOS12时引入,如果你的项目最低版本高于或等于iOS13那么你应该总是选择LottieSwift。

Lottie OC 对支持Lottie文件的暗黑模式有bug. 不再建议使用。

另外提一句, iOS26 未选中状态下的Label颜色,一直是总是 labelColor 也就是黑色或者白色, 无法通过appearance 自定义, 怀疑是Apple的bug, 或者是一个功能, 为了提高未选中时的辨识度。我没想到好的方案进行修复,调研了一下, 似乎大家都接受了这个bug? 如果你有好的方案,请提issue,社交媒体给我的留言,无法保证看见并回复。 issue为唯一反馈途径,谢谢理解。


添加接口lottie动画的渲染模式可以从外部指定 (默认渲染模式是fit) 增加didLayoutSubViewsBlock, 扩大PlusButton可点击面积, 解决iOS15有时候tabbar会变透明的问题;([bug]:iOS15在切换到某些vc后有可能出现TabBar变透明的情况 [#574]) reloadTabBarItemsWithAttributes; (关联 issue 动态更新 tabbarItem 的 icon 跟 title [#303])

Source: README.md, updated 2026-04-28