Remove closeOnTap so snackbars dont steal focus
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -273,7 +273,7 @@ struct AnimatingCellHeight: AnimatableModifier {
|
||||
.autohideIn(2)
|
||||
.position(.bottom)
|
||||
.animation(.spring())
|
||||
.closeOnTapOutside(true)
|
||||
.isOpaque(false)
|
||||
}
|
||||
.onReceive(NSNotification.operationSuccessPublisher) { notification in
|
||||
if let message = notification.userInfo?["message"] as? String {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -43,13 +43,14 @@ public struct Snackbar: View {
|
||||
}
|
||||
.frame(maxWidth: 380)
|
||||
.frame(height: 44)
|
||||
.padding(.horizontal, 15)
|
||||
.padding(.horizontal, 10)
|
||||
.background(self.colorScheme == .light ? Color.black : Color.white)
|
||||
.cornerRadius(5)
|
||||
.clipped()
|
||||
|
||||
Spacer(minLength: 20)
|
||||
}
|
||||
.padding(.horizontal, 10)
|
||||
.background(Color.clear)
|
||||
.frame(height: 44 + 22)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user