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

If type is .loading, its background parent view is still clickable #57

Closed
chitgoks opened this issue Jan 1, 2023 · 2 comments
Closed

Comments

@chitgoks
Copy link

chitgoks commented Jan 1, 2023

How to prevent it and make it modal? At least have it dim the background. or is this a feature request since it is not available?

@elai950
Copy link
Owner

elai950 commented Jan 31, 2023

Hey @chitgoks ,
You can always use the .disable view modifier on the parent view and put the binding variable that loading in the parameter.

VStack{
   /// some view with alert toast view modifier...
}
.disable(isLoading)

@elai950 elai950 closed this as completed Jan 31, 2023
@chitgoks
Copy link
Author

Thanks. still a newbie. I didnt know about the .disable modifier.

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