forked from avocado-bravocado/lottie-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple animations in dotLottie files (airbnb#2074)
- Loading branch information
Showing
20 changed files
with
119 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
Sources/Private/Model/DotLottie/DotLottieConfiguration.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// DotLottieConfiguration.swift | ||
// Lottie | ||
// | ||
// Created by Evandro Hoffmann on 19/10/22. | ||
// | ||
|
||
// MARK: - DotLottieConfiguration | ||
|
||
/// The `DotLottieConfiguration` model holds the presets extracted from DotLottieAnimation | ||
/// The presets are used as input to setup `LottieAnimationView` before playing the animation. | ||
public struct DotLottieConfiguration { | ||
/// id of the animation | ||
public var id: String | ||
|
||
/// Animation Image Provider | ||
public var imageProvider: AnimationImageProvider? | ||
|
||
/// Loop behaviour of animation | ||
public var loopMode: LottieLoopMode | ||
|
||
/// Playback speed of animation | ||
public var speed: Double | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...ots__/AutomaticEngineTests/testAutomaticEngineDetection.DotLottie-multiple_animations.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Supports Core Animation engine |
Binary file added
BIN
+91.8 KB
...pshotTests/testCoreAnimationRenderingEngine.DotLottie-multiple_animations-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.8 KB
...hotTests/testCoreAnimationRenderingEngine.DotLottie-multiple_animations-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
...shotTests/testCoreAnimationRenderingEngine.DotLottie-multiple_animations-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
...shotTests/testCoreAnimationRenderingEngine.DotLottie-multiple_animations-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.8 KB
...shotTests/testCoreAnimationRenderingEngine.DotLottie-multiple_animations-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.8 KB
...SnapshotTests/testMainThreadRenderingEngine.DotLottie-multiple_animations-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.8 KB
...apshotTests/testMainThreadRenderingEngine.DotLottie-multiple_animations-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
...napshotTests/testMainThreadRenderingEngine.DotLottie-multiple_animations-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
...napshotTests/testMainThreadRenderingEngine.DotLottie-multiple_animations-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+91.8 KB
...napshotTests/testMainThreadRenderingEngine.DotLottie-multiple_animations-75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.