Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 24, 2021 17:31
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 sturdysturge/fa94ceb949c21df0d1f098f44b5bc717 to your computer and use it in GitHub Desktop.
Save sturdysturge/fa94ceb949c21df0d1f098f44b5bc717 to your computer and use it in GitHub Desktop.
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