Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lottie动画默认状态图片冲突 #397

Closed
liuzhuoming opened this issue Jul 11, 2019 · 2 comments
Closed

Lottie动画默认状态图片冲突 #397

liuzhuoming opened this issue Jul 11, 2019 · 2 comments
Labels

Comments

@liuzhuoming
Copy link

enter image description here



Base Info for this issue

加了Lottie动画之后,所有的Item图片都是动画的效果,未选中的默认状态图片不显示了
效果图

  1. Version:1.28.1
  2. Language of App :Swift
  3. iOS System Version:iOS12
  4. Prototype(是否是真机):YES
  5. Issue Type:Bug

1. How to reproduce the problem.

代码基本照着demo翻译的,一切正常。只是在添加了Lottie动画之后,默认图片不显示了。

2. Please help me in this way.

3. Here is a Demo.

4. Here is my Debug log


@ChenYilong
Copy link
Owner

Lottie动画模式下,
默认选中状态的图片需要Lottie的json文件第一帧支持。
如果想用Lottie同时也想用静态图片做未选中状态的展示,
就需要自己实现了,方法比较复杂。在这里有介绍 #341

推荐让UI去支持,更新Lottie文件来支持。参考demo里的Lottie文件。

@ChenYilong ChenYilong added the Q-A label Jul 11, 2019
@liuzhuoming
Copy link
Author

谢谢!(゜-゜)つロ 干杯~-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants