https://github.com/lottiefiles/app-tutorial-progressanimation
Demonstrates how to use Lottie animations for showing progress in UIKit and SwiftUI
https://github.com/lottiefiles/app-tutorial-progressanimation
Last synced: over 1 year ago
JSON representation
Demonstrates how to use Lottie animations for showing progress in UIKit and SwiftUI
- Host: GitHub
- URL: https://github.com/lottiefiles/app-tutorial-progressanimation
- Owner: LottieFiles
- Created: 2022-08-23T20:28:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T20:12:32.000Z (over 2 years ago)
- Last Synced: 2025-01-13T03:21:00.521Z (over 1 year ago)
- Language: Swift
- Size: 44.9 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lottie Progress Tutorial
## About
This app demonstrates the usage of Lottie animations:
1. Interaction with animation
2. Controlling progress of animation
3. Example in UIKit and SwiftUI
## Requirements
- iOS 13+
- Swift 5.0
## Extra
Changing color in animation:
``` swift
// log keypaths (after loading animation)
animationView.logHierarchyKeypaths()
// from the logs, get the .Color keypath and use like this
animationView.setValueProvider(ColorValueProvider(Color(r: 1, g: 0, b: 0, a: 1), keypath: AnimationKeypath(keypath: "keypath.Color"))
```
Happy coding! 😀