New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong position of toast while displaying in sheet #5
Comments
The var body: some View {
VStack{
Button("Show Detail") {
showingDetail.toggle()
}
}
.sheet(isPresented: $showingDetail) {
NextView()
}
//Implement `.toast` here
} |
This is actually how AlertToast works. By receiving the Y position in the current view. '.sheet' can be on a button but it's not the same case for AlertToast. |
This doesn't solve the problem, I have put the toast above the VStack in a Sheet, but the position still incorrect as @Rminsh showed. |
...same here, this does not solve the problem (iOS 14.6) It seems that As Rminsh wrote "...to implement toast in the Child view..." works but unfortunately not for What is the solution for |
I've released a new version where you can manually offset the height until I'll find a better solution. .toast(isPresenting: ...., offsetY: CGFloat) Closing issue. |
Remove activity indicator
Describe the bug
Toast will show in wrong position with hud display mode when using it in sheet. This bug appears only in iOS
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Y Position of Toast should be much more below or even below the NavigationView (if is defined)
Screenshots
Smartphone:
Sample code:
The text was updated successfully, but these errors were encountered: