Skip to content

Commit

Permalink
Fix bug and update read.me gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Belezeko committed Apr 24, 2023
1 parent 9d0fba7 commit 84dbfc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Build on UIButton with CAShapeLayers It includes a set of the most common naviga

[Animation on dribbble.com](http://drbl.in/poGN)

![](https://cloud.githubusercontent.com/assets/1054094/8696614/806e054a-2af6-11e5-9155-a513b084ea4a.gif)
![](https://user-images.githubusercontent.com/1054094/234088798-763af7fd-f4d6-4b7d-ae9f-8bcc147dfff2.gif)

Both ways animated transitions:

Expand Down
5 changes: 4 additions & 1 deletion Sources/TBIconTransitionKit/AnimationButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,15 @@ public class TBAnimatedButton: UIButton {
bottomAnimation.values = bottomValues

let middleTransform = arrowLineTransform(line: middleLayer)
let middleValues = [
var middleValues = [
NSValue(caTransform3D: CATransform3DIdentity),
NSValue(caTransform3D: CATransform3DIdentity),
NSValue(caTransform3D: middleTransform),
NSValue(caTransform3D: middleTransform)
]
if reverse {
middleValues = middleValues.reversed()
}
let middleTimes = [0.0, 0.4, 0.4, 1.0]
let middleAnimation = createKeyFrameAnimation()
middleAnimation.keyTimes = middleTimes.map { NSNumber(value: $0) }
Expand Down

0 comments on commit 84dbfc7

Please sign in to comment.