Skip to content

Instantly share code, notes, and snippets.

@fermoya
Last active November 13, 2019 20:39
Show Gist options
  • Save fermoya/befcd517256c481ed4bf33a24cc267fb to your computer and use it in GitHub Desktop.
Save fermoya/befcd517256c481ed4bf33a24cc267fb to your computer and use it in GitHub Desktop.
This a snippet of WalletView.swift in my repository BankCards
ZStack() {
ForEach(self.wallet.cards) { card in
CardView(card: card)
.opacity(self.opacity(for: card))
.offset(x: 0,
y: self.offset(for: card))
.scaleEffect(self.scaleEffect(for: card))
.rotation3DEffect(self.rotationAngle(for: card),
axis: (x: 0.5, y: 1, z: 0))
}
}.padding(.horizontal, Self.padding)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment