Skip to content

Instantly share code, notes, and snippets.

@fermoya
Last active November 14, 2019 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermoya/394badf100681e3a539d7e8ca658d362 to your computer and use it in GitHub Desktop.
Save fermoya/394badf100681e3a539d7e8ca658d362 to your computer and use it in GitHub Desktop.
ZStack() {
if self.isPresented {
ForEach(self.wallet.cards) { card in
CardView(card: card)
/*
... Setting up the view ...
*/
}
}
}.padding(.horizontal, Self.padding)
.onAppear { self.isPresented.toggle() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment