Create Tinder-like swiping in your app. This was a fun tutorial series to make. Hope you enjoy it!
Also, a viewer pointed out something that can make the dragging of the card code a little simpler.
Instead of:
You can just do:
Also, a viewer pointed out something that can make the dragging of the card code a little simpler.
Instead of:
let point = sender.translation(in: view) card.center = CGPoint(x: view.center.x + point.x, y: view.center.y + point.y)
You can just do:
card.center = sender.location(in: view)Easy!
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.