Skip to content
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

autoHide might be failed in Xcode 13 #48

Closed
TerryHuangHD opened this issue Oct 6, 2021 · 2 comments
Closed

autoHide might be failed in Xcode 13 #48

TerryHuangHD opened this issue Oct 6, 2021 · 2 comments

Comments

@TerryHuangHD
Copy link

Description

  • autohideIn is not working: the dismissCallback will be called continuously, and the dialog is not dismissed
.popup(isPresented: $viewModel.infoToastShow,
                       type: .floater(verticalPadding: 15),
                       position: .top,
                       autohideIn: 2,
                       dismissCallback: viewModel.infoToastCallback) {
                           // UI
                       }

Xcode

Screen Shot 2021-10-06 at 11 38 15 PM

@mnndnl
Copy link
Contributor

mnndnl commented Oct 7, 2021

Hey @TerryHuangHD !
I've checked your issue, and autohideIn and dismissCallback are working correctly, at least in Examples. Also, I've checked with simple ViewModel: ObservableObject in Xcode 13A233, it is working too.

Maybe you have a problem with reinit of your ViewModel ?
You can provide us with more detailed information and we will help to solve the problem.

@TerryHuangHD
Copy link
Author

It seems to be interfered with other @published properties in the same view model.
I changed the design and it works now.
Thanks for helping out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants