Created
February 9, 2022 13:23
-
-
Save SarahAlsharif/5a71a352fdb13bf114aa9687b43c436a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| struct CardFront : View { | |
| let width : CGFloat | |
| let height : CGFloat | |
| @Binding var degree : Double | |
| var body: some View { | |
| ZStack { | |
| RoundedRectangle(cornerRadius: 20) | |
| .fill(.white) | |
| .frame(width: width, height: height) | |
| .shadow(color: .gray, radius: 2, x: 0, y: 0) | |
| Image(systemName: "suit.club.fill") | |
| .resizable() | |
| .frame(width: 80, height: 80) | |
| .foregroundColor(.red) | |
| }.rotation3DEffect(Angle(degrees: degree), axis: (x: 0, y: 1, z: 0)) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment