Skip to content

Instantly share code, notes, and snippets.

@SarahAlsharif
Created October 4, 2022 12:09
Show Gist options
  • Save SarahAlsharif/fb05535b2fd5e0ba0f2518c7105843db to your computer and use it in GitHub Desktop.
Save SarahAlsharif/fb05535b2fd5e0ba0f2518c7105843db to your computer and use it in GitHub Desktop.
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