Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Add method chaining#5

Open
miyakeryo wants to merge 1 commit intotheguildjp:masterfrom
miyakeryo:method_chain
Open

Add method chaining#5
miyakeryo wants to merge 1 commit intotheguildjp:masterfrom
miyakeryo:method_chain

Conversation

@miyakeryo
Copy link

  • TweenJSライクにObjective-Cでもメソッドチェーンで書けるようにしました。
#import "GLDTween+Chain.h"
    GLDTween.get(self.box)
        .remove()
        .to(@{@"duration": @0.4,
              @"easing": transition,
              @"transform": [NSValue valueWithCGAffineTransform:t1]})
        .wait(0.2)
        .to(@{@"duration": @0.4,
              @"easing": transition,
              @"transform": [NSValue valueWithCGAffineTransform:t2]})
        .call(^(){
            NSLog(@"completed!");
        });

前回のプルリクから要らないものを削って、Copyrightも変えたのですがどうでしょうか。
大きすぎるかな。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant