Giter Site home page Giter Site logo

Comments (7)

m1ga avatar m1ga commented on May 25, 2024

iOS? I didn't implement the feature on Android. I think it is not available in lottie-android

from ti.animation.

hansemannn avatar hansemannn commented on May 25, 2024

Please try the iOS 1.2.0 Beta.

from ti.animation.

Brianggalvez avatar Brianggalvez commented on May 25, 2024

Yes, iOS. Now it shows the view but not in the correct layer :
captura de pantalla 2017-09-09 a las 10 26 09
It should be inside the star.

Also the beta version only works with the 6.2.0.RC

from ti.animation.

hansemannn avatar hansemannn commented on May 25, 2024

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.

Brianggalvez avatar Brianggalvez commented on May 25, 2024

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.

hansemannn avatar hansemannn commented on May 25, 2024

Please wait for the 1.2.0 release, thx.

from ti.animation.

hansemannn avatar hansemannn commented on May 25, 2024

Closing this issue as it's solved.

from ti.animation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.