Created
October 4, 2022 12:09
-
-
Save SarahAlsharif/fb05535b2fd5e0ba0f2518c7105843db 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 FoodDeliveryDetailed: View { | |
let icon : String | |
let color : Color | |
let text : String | |
var body: some View { | |
VStack { | |
Spacer() | |
ZStack { | |
Circle().fill(.ultraThinMaterial.opacity(0.3)) | |
.frame(width: 260) | |
.offset(x: -10, y: -10) | |
Circle().fill(.ultraThinMaterial.opacity(0.5)) | |
.frame(width: 260) | |
Circle().fill(.ultraThinMaterial.opacity(0.3)) | |
.frame(width: 230) | |
.offset(x: 20, y: 20) | |
Image(systemName: icon) | |
.resizable() | |
.scaledToFit() | |
.frame(width: 160) | |
.foregroundColor(color.opacity(0.6)) | |
} | |
Spacer() | |
Text("YOUR ORDER STATUS:") | |
Text(text) | |
.font(.title) | |
.padding() | |
.background(Color.black.opacity(0.1)) | |
.border(.white) | |
Spacer() | |
} | |
.frame(maxWidth: .infinity, maxHeight: .infinity) | |
.padding(24) | |
.foregroundColor(.white) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment