GithubHelp home page GithubHelp logo

Comments (9)

hfossli avatar hfossli commented on September 28, 2024 5

Interface

@interface ANYAnimation (Operators)
- (instancetype)before:(dispatch_block_t)before;
- (instancetype)after:(dispatch_block_t)after;
@end

Usage

[[anim before:^{
    [view addSubview:maskView];
}] after:^{
    [maskView removeFromSuperview];
}];

from anymotion.

aarsland avatar aarsland commented on September 28, 2024 1

finally feels like something that will be done under all circumstances - like a try-catch block, but I support @kostiakoval.

from anymotion.

hfossli avatar hfossli commented on September 28, 2024

I want to know which name is better. Please vote.

from anymotion.

hfossli avatar hfossli commented on September 28, 2024

Interface

@interface ANYAnimation (Operators)
- (instancetype)initially:(dispatch_block_t)initially;
- (instancetype)finally:(dispatch_block_t)finally;
@end

Usage

[[anim initially:^{
    [view addSubview:maskView];
}] finally:^{
    [maskView removeFromSuperview];
}];

from anymotion.

hfossli avatar hfossli commented on September 28, 2024

RAC uses initially and finally on 2.5

from anymotion.

kostiakoval avatar kostiakoval commented on September 28, 2024

what is latest RAC version? How about other libs like Rx and POP. And most important UIKit and CoreAnimation, because it's Apple :)

from anymotion.

hfossli avatar hfossli commented on September 28, 2024

Well Apple is probably more along the line of

Interface

@interface ANYAnimation (Operators)
- (instancetype)willStart:(dispatch_block_t)willStart;
@end

Usage

[[anim willStart:^{
    [view addSubview:maskView];
}] complete:^(BOOL success){
    [maskView removeFromSuperview];
}];

from anymotion.

matshau avatar matshau commented on September 28, 2024

@hfossli What's the status here? Looks like before and after is implemented?

from anymotion.

hfossli avatar hfossli commented on September 28, 2024

Yep, I am not 100% satisfied. It somehow felter weird. It might be better to rename them. Let's close this and reopen a new one later.

from anymotion.

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.