motion-animator-objc icon indicating copy to clipboard operation
motion-animator-objc copied to clipboard

Add support for relative values

Open jverkoey opened this issue 8 years ago • 0 comments
trafficstars

Values passed to the animator are currently absolute. It would be nice to also be able to provide relative values.

// Move a view 50 points down.
    [animator animateWithTiming:timing
                        toLayer:view.layer
             withRelativeValues:@[ @0, @50 ]
                        keyPath:MDMKeyPathY];

This feature should take care when implementing support for shouldReverseValues.

jverkoey avatar Jul 28 '17 18:07 jverkoey