Comments (7)
iOS? I didn't implement the feature on Android. I think it is not available in lottie-android
from ti.animation.
Please try the iOS 1.2.0 Beta.
from ti.animation.
Yes, iOS. Now it shows the view but not in the correct layer :
It should be inside the star.
Also the beta version only works with the 6.2.0.RC
from ti.animation.
It is expected to be there, as it's by default placed at a 0/0 rect inside the wrapper view. You will have to position it to the correct rect for your use-case. I need to check that, as well as the < 6.2.0 compatibility. What does not work? Simply saying something doesn't work doesn't bring us to a solution :).
EDIT: It was a dynamic library, which is only supported natively in Ti SDK 6.2.0+. Removed that and replaced it with the source-files again. Works now.
from ti.animation.
Yes sorry for not pointing it...
As I see in the exaple [http://airbnb.io/lottie/ios/addsubviews.html] it's correct, you have to manually position it, I thought it would be centered automatically.
Thanks!
EDIT:
I've added two methods that I found useful:
-(void)logHierarchyKeypaths:(id)unused
{
[[self animationView] logHierarchyKeypaths];
}
But with this I cna only see the logs with iOS Console App.
- (void)setValueforKeypathAtFrame:(id)args
{
ENSURE_UI_THREAD(setValueforKeypathAtFrame, args);
ENSURE_DICT(args);
id value = [args objectForKey:@"value"];
id keypath = [args objectForKey:@"keypath"];
id frame = [args objectForKey:@"frame"];
TiColor *newColor = [TiUtils colorValue:value];
if(newColor!=nil)
{
value = [newColor _color];
}
[[self animationView]setValue:value forKeypath:keypath atFrame:frame];
}
And this one, but I feel that we could miss some cases for the 'value' key. How I should proceed, wait for the 1.2.0 release and do a PR or should I do it now?
from ti.animation.
Please wait for the 1.2.0 release, thx.
from ti.animation.
Closing this issue as it's solved.
from ti.animation.
Related Issues (20)
- click event not firing HOT 4
- Dynamic Placeholder HOT 1
- iOS 1.2.0 beta 1 - Error on device HOT 1
- App crashes on iOS 11 simulator at launch HOT 4
- Allow to pass JSON instead of path HOT 5
- ready to use module for 7 HOT 1
- iOS: Not found animation file on ItemTemplate HOT 5
- Like/Dislike animation HOT 2
- animation not woking for Listview HOT 2
- lottie animation not supporting text animation with custom fonts HOT 1
- Lottie animation crashed when switching multiple screen of lottie animation
- cannot package iOS module HOT 3
- Android: Update to Lottie 3.0
- Add feature to run Lottie animations inside ListView after some user actions like in `itemClick` event.
- Update Example app
- Receipt for usage in list view HOT 5
- lottie animation get crashed with android target sdk 28 and android pie device HOT 1
- TiShadow is passing a full path via file-key to loadAnimationFromJSON:(NSString *) HOT 1
- Implementing ti.animation crashes iOS on older versions HOT 10
- complete event is called twice in android HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ti.animation.