-
-
Save sturdysturge/fa94ceb949c21df0d1f098f44b5bc717 to your computer and use it in GitHub Desktop.
This file contains 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 AquaAlertView: View { | |
let topBarGradient = Gradient(colors: [Color(white: 0.75), Color(white: 0.9)]) | |
var body: some View { | |
VStack(spacing: 0) { | |
LinearGradient(gradient: topBarGradient, startPoint: .bottom, endPoint: .top) | |
.frame(height: 20) | |
ZStack { | |
Color(white: 0.9) | |
.shadow(radius: 5) | |
AquaAlertContentView() | |
AquaAlertButtonsView() | |
} | |
} | |
.frame(height: 150) | |
.mask(TopCornersMaskShape(radius: 5)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment