Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Add support for relative values #9

Open
jverkoey opened this issue Jul 28, 2017 · 0 comments
Open

Add support for relative values #9

jverkoey opened this issue Jul 28, 2017 · 0 comments

Comments

@jverkoey
Copy link
Contributor

jverkoey commented Jul 28, 2017

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.

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

No branches or pull requests

1 participant