Skip to content

Instantly share code, notes, and snippets.

@fermoya
Last active November 15, 2019 11:30
Show Gist options
  • Save fermoya/855c1794b737d25d15cfc92105f182e0 to your computer and use it in GitHub Desktop.
Save fermoya/855c1794b737d25d15cfc92105f182e0 to your computer and use it in GitHub Desktop.
CardView(card: card)
// ...
.gesture(DragGesture()
.onChanged({ (value) in
// some code
}).onEnded({ (value) in
// some code
}))
.transition(.moveUpWardsWhileFadingIn)
.disabled(!self.wallet.isFirst(card: card))
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment