set snackbar y offset to 8

This commit is contained in:
Satindar Dhillon
2022-02-24 21:09:15 -08:00
parent e01aed15e8
commit b7b994e599

View File

@ -55,6 +55,7 @@ struct Snackbar: View {
.frame(width: min(380, geometry.size.width * 0.96), height: 44)
.background(self.colorScheme == .light ? Color.black : Color.white)
.cornerRadius(5)
.offset(x: 0, y: -8)
.shadow(color: .gray, radius: 2)
.animation(Animation.spring())
.onAppear {