Is there a way to check if a remote .lottie file is cached when using DotLottie for iOS? #2562
Unanswered
saha-sagnik
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m currently using the DotLottie iOS SDK to load and play .lottie files from remote URLs in a SwiftUI app.
I want to know if there’s a built-in method or property provided by the DotLottie SDK to check whether a .lottie file is already cached (either internally or on disk), or if it was freshly downloaded.
My use case is to:
• Load a .lottie file from a remote URL
• Determine whether it’s coming from cache or the network
• Optionally notify the UI via a callback
I noticed that methods like DotLottieFile.loadedFrom(url:completion:) don’t indicate the cache status in their result. Is caching handled internally at all by the SDK? Or is manual disk caching via FileManager still the only reliable way to do this?
Any insights or suggestions would be really appreciated!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions