Last active
November 13, 2019 20:39
-
-
Save fermoya/befcd517256c481ed4bf33a24cc267fb to your computer and use it in GitHub Desktop.
This a snippet of WalletView.swift in my repository BankCards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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