51 Commits

Author SHA1 Message Date
brandon_withrow
40b51de5fe Fix add subviews coordinate bug 2017-08-24 14:47:05 -07:00
brandon_withrow
bda0f82330 Crash Fix 2017-08-23 11:45:57 -07:00
Michael Welsh
b0b7b7c8cb Rename _isPlayingForward to _isSpeedNegative to be more clear what it's checking 2017-08-17 17:37:15 -04:00
Michael Welsh
ab75236c5f Revert some of the animationProgress changes to revert to reflect absolutes
- Update header documentation to make it clear how animatinoSpeed and animationProgress interact
- Leave fixes in there that stop reversed animations "snapping" back
2017-08-17 17:05:20 -04:00
Michael Welsh
3e0790a413 Add better support for negative animation speeds
- The progress can be calculated basd on negative speed
  + The end frame would be a progress of 0 and the start frame a progress of 1
  + Recalculate progress when the speed changes, otherwise a "jump" will be seen when restarting animation

- The frame for the progress can be calculated using the newly inverted progress
  + Determine the absolute progress based on current progress and determine which frame to use based on animation speed

- This fixes issues of animations playing with negative speeds "bouncing" back to their final position
  which was caused by the final frame being calculated based on a completed progress of 1 which then did not take into
  account the negative animation speed.
2017-08-17 11:14:48 -04:00
brandon_withrow
9b6d3c9569 Fix for completion block crash 2017-08-15 12:23:44 -07:00
brandon_withrow
7bb96f0d20 SuperView fix 2017-08-14 17:05:32 -07:00
brandon_withrow
9434c0ef1d Fix for Play logic and render group bug 2017-08-14 16:59:04 -07:00
brandon_withrow
29222b210b Fix for missing animation duration 2017-08-07 09:20:55 -07:00
brandon_withrow
0cfc57650d Add support for radial gradient 2017-08-04 15:34:12 -07:00
brandon_withrow
fe00994124 Add support for setting animation after init 2017-08-04 14:39:51 -07:00
brandon_withrow
8067262ebf Add log warning for missing keypath 2017-08-04 13:40:18 -07:00
brandon_withrow
8be9ea150c Added logging for keypaths 2017-08-04 13:36:23 -07:00
brandon_withrow
820b78863e Fix for example apps 2017-08-03 14:27:36 -07:00
brandon_withrow
2726804d5b Fix for setting loop animation mid-flight 2017-08-02 17:06:24 -07:00
brandon_withrow
6fd17cfbe6 Update Caching Layer 2017-08-02 14:22:48 -07:00
brandon_withrow
ad9303e689 readme update 2017-08-02 14:04:42 -07:00
brandon_withrow
ac25888790 Update Pods 2017-08-01 17:03:47 -07:00
brandon_withrow
582a87636a Cleaned Warnings 2017-08-01 14:44:03 -07:00
brandon_withrow
5a1056e53d Removed Old Renderer 2017-07-28 17:11:10 -07:00
brandon_withrow
502b18ff46 Initial Commit of the new Lottie Renderer V2 2017-07-28 14:46:27 -07:00
brandon_withrow
b319db9a29 Fixed bug with layer time being off by one frame 2017-06-13 14:25:21 -07:00
brandon_withrow
8bcd58b98a Fix build error for nbundle addition 2017-06-12 14:32:35 -07:00
Brandon Withrow
8dff2df857 Merge branch 'master' into loadImageFromCustomBundle 2017-06-12 13:48:48 -07:00
Brandon Withrow
d89b40d026 Merge pull request #223 from bellchen/master
add rootDic for imageAsset
2017-06-12 13:45:28 -07:00
bellchen
71326e9589 change rootDic to rootDirectory;
change animationWithFile to animationWithFilePath
2017-06-12 10:56:39 +08:00
Federico Nazrala
d2eb8113fd
Merge branch 'master' of github.com:airbnb/lottie-ios into loadImageFromCustomBundle 2017-06-07 18:51:52 -03:00
Brandon Withrow
4c623a8a2a Merge pull request #245 from 3sidedcube/fix/setting_progress
Fixes setting initial progress of Lottie animation
2017-06-07 12:19:32 -07:00
Brandon Withrow
a4dab2b0c0 Merge pull request #239 from yury-dymov/loop-pos-fix
Duration fix for JSON based models
2017-06-07 12:13:12 -07:00
Simon Mitchell
6c0043e411 Adds back in setNeedsDisplay 2017-05-30 13:52:34 +01:00
Simon Mitchell
faf5e4e6eb Removes un-necessary setNeedsLayout 2017-05-26 11:06:39 +01:00
Simon Mitchell
e99126f625 Only updates animation if the view has a window to avoid issues with setting
initial progress of the animation (This was noticeable particularly in React-Native
projects due to didMoveToSuperview calling setNeedsAnimationUpdate before the
view was in a window, and then the didMoveToWindow call being blocked
2017-05-26 10:47:02 +01:00
Yury Dymov
065c7116d3 fix 2017-05-18 17:25:47 -07:00
Federico Nazrala
5d52acac81
Formatt files 2017-05-17 21:21:45 -03:00
Federico Nazrala
77c6fca5a3
Allow load image from custom bundle 2017-05-17 21:16:46 -03:00
bellchen
2c06373b1f add rootDic for imageAsset 2017-04-28 12:28:40 +08:00
Tim Malseed
5b428e3be1 Fixed typo in LOTAnimationView function
_callCompletionIfNecesarry -> _callCompletionIfNecessary
2017-04-04 15:32:31 +10:00
jmyers0022
dd197d66fc remove check for looping animation 2017-03-16 08:45:54 -06:00
jmyers0022
f788f45081 leave reference to completion block in looping animation 2017-03-15 20:50:48 -06:00
Valeriy Van
57f76c0ff5 Annotates unused functions return value as __unused making static analyzer happy. 2017-03-02 22:10:39 +01:00
Andy Bartholomew
cfa7676db4 add factory method with bundle param 2017-03-01 15:32:27 -08:00
Michael Welsh
2bd40e19a9 Remove unused variable from -updateAnimationLayerClockTime:timeOffset:
- clockTime isn't used. Rename to -updateAnimationLayerWithTimeOffset:
2017-02-28 18:52:14 -05:00
Brandon Withrow
d06a02721d Added precomp support 2017-02-24 09:47:18 -08:00
Brandon Withrow
48d35667a3 Move main layerContainer over to compLayer 2017-02-24 09:47:18 -08:00
Brandon Withrow
6dc8e37392 Refactor layers for precomps 2017-02-24 09:47:18 -08:00
Alex Pawlowski
acbdfb776d Dispatch LOTAnimationView completion to the main thread on macOS (fixes #103) 2017-02-22 14:23:38 +02:00
Brandon Withrow
765b4b4834 Namespaces CGGeomteryAdditions 2017-02-15 11:23:34 -08:00
Brandon Withrow
a4bacc06e9 Fixed bug setting initial progress 2017-02-13 15:35:16 -08:00
Hans Knöchel
dd17fd81d4
Throw error when invalid JSON resource specified 2017-02-11 18:37:28 +01:00
AlexQuinlivan
4b790058b4 Use the compositions size as the intrinsic size of the view 2017-02-10 09:43:13 +13:00