Skip to content

Commit

Permalink
Fix removing animation from arrow layer
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Aug 17, 2019
1 parent 0463bb7 commit 29d3fe1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ open class SPStorkIndicatorView: UIView {
}

if self.mode == .alwaysArrow {
self.leftView.removeAllAnimations()
self.rightView.removeAllAnimations()
self.leftView.layer.removeAllAnimations()
self.rightView.layer.removeAllAnimations()
self.leftView.transform = .identity
self.rightView.transform = .identity
let angle = CGFloat(20 * Float.pi / 180)
Expand Down
4 changes: 2 additions & 2 deletions Source/SPStorkController/Views/SPStorkIndicatorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ open class SPStorkIndicatorView: UIView {
}

if self.mode == .alwaysArrow {
self.leftView.removeAllAnimations()
self.rightView.removeAllAnimations()
self.leftView.layer.removeAllAnimations()
self.rightView.layer.removeAllAnimations()
self.leftView.transform = .identity
self.rightView.transform = .identity
let angle = CGFloat(20 * Float.pi / 180)
Expand Down

0 comments on commit 29d3fe1

Please sign in to comment.