marcosgriselli / marcosgriselli/ViewAnimator

AnimationType.vector animates in an incorrect direction

Open
#72 3 comments 0 reactions 1 assignee Claimed by @marcosgriselli View on GitHub
bug
Dominant language
Swift
Stars
7.3k
Forks
483
PR merge metrics
No merged PRs in 30d

Description

#70 introduced a new animation case called `.vector(CGVector)` which replaced the old `.from(Direction, CGFloat)` case. This new type has a bug where the animations are performed in an incorrect direction.

```swift
view.animate(animations: AnimationType.vector(CGVector(dx: 0, dy: 30)))
```

Should translate the view from top to bottom by 30 points but it's happening in a reversed order.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.