Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix M_PI_2 migration which was breaking transitions #441

Merged
merged 2 commits into from Apr 12, 2017

Conversation

tbaranes
Copy link
Member

@tbaranes tbaranes commented Apr 11, 2017

Close #440
Fix a few animators, introduced in 10104cd:

  • Flip
  • Turn
  • Fold

Thanks to @phimage for the fix!
@SD10 This fix the broken transition you reported a few days ago

May also close #305 ? Need more testing to confirm

@tbaranes tbaranes added this to the 4.0 milestone Apr 11, 2017
@tbaranes
Copy link
Member Author

tbaranes commented Apr 11, 2017

After a few testing for #305, it seems to fix Turn, but also Explode (so not related to this PR).
The Flip and Fold have still a frame issues when the navigation bar is opaque (maxY or height is wrong), but the animation is much better than before since it's working 😬

Copy link
Member

@JakeLin JakeLin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, must be me introduced those bugs. All good, thanks for fixing them 👍👍👍

@@ -173,7 +173,7 @@ private extension FlipAnimator {
completion: @escaping AnimatableCompletion) {
UIView.animateKeyframes(withDuration: transitionDuration, delay: 0, options: .layoutSubviews, animations: {
UIView.addKeyframe(withRelativeStartTime: 0.0, relativeDuration: 0.5, animations: {
flippedSectionOfFromView.0.layer.transform = self.rotate(angle: self.reverse ? -.pi * 2 : .pi * 2)
flippedSectionOfFromView.0.layer.transform = self.rotate(angle: (self.reverse ? -.pi : .pi) / 2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the self here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we do but #446 removes all of them where not necessary. I could've missed some but I think I got them all 😛

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SD10 thanks for taking care of self.

@JakeLin JakeLin merged commit d6b6426 into master Apr 12, 2017
@JakeLin JakeLin deleted the hotfix/pi_migration branch April 12, 2017 03:14
@JakeLin
Copy link
Member

JakeLin commented Apr 12, 2017

The Flip and Fold have still a frame issues when the navigation bar is opaque (maxY or height is wrong)

@tbaranes I merged the PR now. I think we saw this issue before when we have a navigation bar, I looked at it before and didn't find a solution for fixing it.

@tbaranes tbaranes modified the milestones: 4.x, 4.0 Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants