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

Animate backCardView should happen during swipe #87

Open
acegreen opened this issue May 25, 2015 · 0 comments
Open

Animate backCardView should happen during swipe #87

acegreen opened this issue May 25, 2015 · 0 comments

Comments

@acegreen
Copy link

I think it looks more appropriate when we perform the following as the swipe is taking place. Also it needs to factor in the motion (as tinder does when you begin swiping)

backCardView = self.popPersonViewWithFrame(self.backCardViewFrame())

// Fade the back card into view.
if backCardView != nil {

        self.backCardView.alpha = 0.0
        self.view.insertSubview(self.backCardView, belowSubview: self.middleCardView)
        UIView.animateWithDuration(0.5, delay: 0.0, options: .CurveEaseInOut, animations: {
            self.backCardView.alpha = 1.0
            },completion:nil)

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

No branches or pull requests

1 participant