SwiftUISnackbar icon indicating copy to clipboard operation
SwiftUISnackbar copied to clipboard

SnackBar Hides behind TabView

Open sangampokharel opened this issue 1 year ago • 2 comments

SomeView() .snackbar(isShowing: snackBarVisible, title: "Validation Error !", text: showMessage.wrappedValue, style: .custom(.red),actionText: "Dismiss") { changePasswordVM.hideSnackBar() }

sangampokharel avatar Feb 20 '24 10:02 sangampokharel

Screenshot 2024-02-20 at 4 45 58 PM

The red one is the snacbar used !

sangampokharel avatar Feb 20 '24 11:02 sangampokharel

@sangampokharel hi! I think the issue might be in the z-depth. Have you tried adding a .zIndex(_:) to the TabBar and set it to 0?

I had the same problem and this trick solved it for me, let me know

zaniluca avatar Feb 21 '24 22:02 zaniluca

@sangampokharel I assume it worked! Feel free to re-open it otherwise

zaniluca avatar Oct 15 '24 09:10 zaniluca