ChenYilong / CYLTabBarController

[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.9k stars 1.45k forks source link

fix:当五个TabbarItem,其中仅第三个无lottie动画时bug. #582

Closed douxindong closed 7 months ago

douxindong commented 2 years ago



My issue:

image 当中间门店item并不想加lottie动画时,动画错位:【"购物车"的动效跑到"门店上去"了】 1.采取:当index==2时不设置此参数"CYLTabBarLottieURL"结果,"购物车"的动效跑到"门店上去"了 通过读代码得知:NSURL *lottieURL = self.lottieURLs[index]; 设计缺陷,导致必须要么一致有动画要么不加动画。 2.解决方案: image

What I have done:

fix: 源码改动: image

my-lsk commented 2 years ago

我和你一样遇到了这个问题,使用你的方法,暂时解决了,非常感谢。