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
Popup from bottom does not always animate in the correct direction #93
Comments
Closing this for now because I think my main view is causing this issue. I'll report back any findings. |
I'm reopening this issue, but I still don't have a concrete reason why the bottom toast fails to animate correctly on my app, but not on the example app. My view hierarchy is basically:
Both 1.3.1 and 2.0.0 have the same issue. It's also interesting that actionSheet2() is more prone to animating wrong. Also, sorry if the example above has syntax errors. It's just a high-level example. Thanks |
Hey @jtressle since it works as expected in the example app, I cannot really help you unless you provide a compilable minimal reproducible example. Could you please attach such an example? Have a nice day |
Hi @f3dm76, I was able to reproduce the issue with this example. In the iOS example app, replace line 14 My device is running 16.2. Hope this helps. Thanks. RPReplay_Final1674245288.mp4 |
same issue! |
I noticed that if you manually set .isOpaque(true) it will work fine. Besides I noticed this error occurs when you set .closeOnTapOutside(true) without .isOpaque(true). If you set .isOpaque(true).closeOnTapOutside(true), it will work fine |
same issue! |
Same issue friends |
same issue!!!!!!! |
Hey everyone, thank you for your reports, sorry it took me a while, but please check out version 2.1.3, the issue should be gone there. Special thanks to @Rittenzore for figuring out the exact root of this issue, it helped me a lot in fixing it. Have a wonderful day guys! |
@f3dm76 Hey, when updating to 2.1.3 and running I got a crash This is the usage:
|
Update Just had to init it as nil instead
Still a bug tho |
Hey @Dave181295, I found a crash during dismiss, is that the one you have? Fixed in 2.4.2, please check it out |
Hi,
I just updated to version 2.0.0, and I'm having issues with the following popup animating correctly.
.popup(isPresented: $showingMenu, view: { menu() }, customize: { $0 .type(.toast) .position(.bottom) .closeOnTap(true) .closeOnTapOutside(true) .backgroundColor(.black.opacity(0.4)) })
I'm toggling
showingMenu
from a navigation button, and have placed the above code onto a ZStack.The first time I click my button, the menu animates correctly from the bottom. All subsequent button presses have the menu animating from the top down. This was not occurring in version 1.3.
Again, many thanks for this library.
Thanks,
The text was updated successfully, but these errors were encountered: