126 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
Brandon Withrow
fbf6ca5686 Merge branch 'master' into reverseSupport 2017-08-17 15:04:12 -07:00
Michael Welsh
805a671448 Update LOTAnimationView header to have better comments 2017-08-17 17:41:50 -04: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
Louis D'hauwe
2ef6f1d19f Update LOTAnimationView.h 2017-08-17 11:09:09 +02:00
Brandon Withrow
b795c24ad8 Merge pull request #374 from Calvix-Xu/master
fix the Memory leak in LOTBezierPath.m file
2017-08-16 10:09:10 -07:00
XuHongjian
bc3d4edc9b fix the Memory leak in LOTBezierPath.m file 2017-08-16 14:10:01 +08: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
4b747e19d5 Fix for gradients 2017-08-04 16:10:11 -07:00
brandon_withrow
44997f6280 Disable debug 2017-08-04 15:35:08 -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
5756072a8f Update podfile 2017-08-03 16:37:15 -07:00
Brandon Withrow
7cc71d1e41 Merge pull request #336 from panmingyang2009/imageCache
Allow custom image cache for 'animationWithFilePath'
2017-08-03 16:09:58 -07:00
brandon_withrow
820b78863e Fix for example apps 2017-08-03 14:27:36 -07:00
brandon_withrow
3306837b8c Fix for force update 2017-08-03 13:40:45 -07:00
brandon_withrow
e5be5e8ee2 Fix for altering single keyrames 2017-08-03 12:14:27 -07:00
panmingyang2009
74b7144a4c Use LOTCacheProvider in LOTLayerView 2017-08-03 23:34:03 +08:00
panmingyang2009
2ae59bc7e9 Add third party image cache support
LOTCacheProvider allow external developer provide their own cache for Lottie.
2017-08-03 23:33:47 +08:00
brandon_withrow
2726804d5b Fix for setting loop animation mid-flight 2017-08-02 17:06:24 -07:00
Brandon Withrow
973ec4e76a Merge pull request #331 from airbnb/btw/lottie201
Update to fix builds
2017-08-02 16:35:50 -07:00
brandon_withrow
9fddf34dfe Update to fix builds 2017-08-02 16:31:25 -07:00
rob-keepsafe
c8666d1ba6 Expose completionBlock 2017-08-02 15:39:59 -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
e858c6afd1 Removed old rendered 2017-07-28 17:10:29 -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
edff297c84 Fix for vertex out of bounds crash 2017-06-12 15:22:43 -07:00
brandon_withrow
f766cdadd9 Fix for layer out frame 2017-06-12 14:57:59 -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
Brandon Withrow
bf11cb7084 Merge pull request #194 from aquarchitect/master
macOS Public Header Build Error
2017-06-12 12:57:21 -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
Federico Nazrala
5780e06ffb
PR review 2017-06-07 18:50:04 -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