Skip to content

Instantly share code, notes, and snippets.

@hitendradeveloper
Created May 8, 2021 10:09
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 hitendradeveloper/822b7c00919beb9edc1c0def3c943f29 to your computer and use it in GitHub Desktop.
Save hitendradeveloper/822b7c00919beb9edc1c0def3c943f29 to your computer and use it in GitHub Desktop.
SwiftUI CoinFlip Front and Back views - https://medium.com/p/eb38e3bf71aa
// Hitendra Solanki
// SwiftUI Coin Flip Example
//Represents the FRONT view for the coint
struct CoinViewFront: View {
var body: some View {
Image("front")
.resizable()
}
}
//Represents the BACK view for the coint
struct CoinViewBack: View {
var body: some View {
Image("back")
.resizable()
.rotation3DEffect(
.degrees(-180),
axis: (x: 0.0, y: 1.0, z: 0.0)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment