-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Animation Glitch on FullScreen Implementation. #97
Comments
Hey @dentvii! Thank you for these words and this amazing description, it will help us a lot in understanding the source of the problem! Regarding the first point, I would advise delaying the loading of the content of the popup (0.5 seconds should be enough). Here you have an example how you can achieve it: (...)
@State private var showContent: Bool = false
(...)
func createContent() -> some View {
(...)
.animation(.easeInOut, value: showContent)
.onAppear() {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { showContent = true }
}
}
(...)
@ViewBuilder func createWebView() -> some View { if showContent {
WebView()
}}
(...) This problem occurs because both Regarding the second problem, thank you for pointing it out, I thought it had already been fixed, I will fix it later this week (sorry for the delay, but we are busy preparing an update for Navigattie, our second library). Once again, I would like to thank you for these discoveries and have a great day! |
Thank you for your quick response and your interest in fixing this issue! I believe the problem is related to the
|
Thanks @dentvii |
@dentvii, the problem should be resolved with patch-2.4.2 branch. To make it work, please delete PopupFullScreen(contentIgnoresSafeArea: true) {
MockSubscriptionAlternative01View()
.onTapGesture {
PopupManager.dismiss()
}
}.showAndStack() Uploading CleanShot 2024-05-23 at 14.30.46.mp4… Thanks again for the finding and apologies, but there will be a slight delay in other issues as some unpredictable things I have to deal with now have happened in my regular work 😉 |
First of all, thank you for the amazing package!
I'm encountering an issue when using popups in combination with views that contain
.edgesIgnoringSafeArea(.all)
. Specifically, I've noticed that when the popup hascontentIgnoresSafeArea
set to eithertrue
orfalse
, the following glitches occur:Animation Glitch:
Post-Dismissal Lag:
I would greatly appreciate any assistance in resolving this issue.
The text was updated successfully, but these errors were encountered: