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 file works on Android and Web Preview, but not iOS #1603

Closed
5 of 10 tasks
mattgapadmi opened this issue May 19, 2022 · 2 comments · Fixed by #1693
Closed
5 of 10 tasks

Lottie file works on Android and Web Preview, but not iOS #1603

mattgapadmi opened this issue May 19, 2022 · 2 comments · Fixed by #1693
Labels

Comments

@mattgapadmi
Copy link

mattgapadmi commented May 19, 2022

The attached lottie file works on Android and Web Preview, but not on iOS. This can be seen by opening it in the LottieFiles iOS App. Note that in order to see it in the web preview, you need to change the preview background colour to something other than white.

Check these before submitting:

  • The issue doesn't involve an Unsupported Feature
  • This issue isn't related to another open issue

This issue is a:

  • Non-Crashing Bug (Visual or otherwise)
  • Crashing Bug
  • Feature Request
  • Regression (Something that once worked, but doesn't work anymore)

Which Version of Lottie are you using?

Lottie 3.3.0

What Platform are you on?

  • MacOS
  • iOS

What Language are you in?

  • Swift
  • Objective-C

Expected Behavior

Animation should appear as it does on Web Preview

Actual Behavior

Animation is not shown

Code Example

N/A

Animation JSON

Attached
lf20_9bvc1u7o.json.zip

@SinoAlak
Copy link

I have the same issue. It is working with the preview tool. Android and web. However, not on ios and the error I am getting is a decoding error.

Printing description of error:
▿ DecodingError
▿ keyNotFound : 2 elements
- .0 : CodingKeys(stringValue: "ip", intValue: nil)
▿ .1 : Context
▿ codingPath : 3 elements
- 0 : CodingKeys(stringValue: "assets", intValue: nil)
▿ 1 : _JSONKey(stringValue: "Index 1", intValue: 1)
- stringValue : "Index 1"
▿ intValue : Optional
- some : 1
▿ 2 : _JSONKey(stringValue: "Index 18", intValue: 18)
- stringValue : "Index 18"
▿ intValue : Optional
- some : 18
- debugDescription : "No value associated with key CodingKeys(stringValue: "ip", intValue: nil) ("ip")."
- underlyingError : nil

loading-indicator.json.zip

@calda
Copy link
Member

calda commented Aug 3, 2022

Thanks for the report, fixed in #1693

@calda calda added the bug label Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants