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

Disabling background view? #1

Open
crspybits opened this issue Nov 26, 2020 · 1 comment
Open

Disabling background view? #1

crspybits opened this issue Nov 26, 2020 · 1 comment

Comments

@crspybits
Copy link

Hi-- Thanks for this package!! I'm using it in https://github.com/SyncServerII/Neebla.
One thing I'm finding: So far, in my use of your package, by default-- the background view controls are not disabled. I'm having to take some additional separate steps to disable them. For example, in a nav bar, when a modal is presented, I can still tap on the nav bar buttons on the background view. What I'd like (at least as option) is to be able to automatically disable all controls on the screen beneath the modal.

I'm still pretty new to SwiftUI so not sure how this change would go. But could take a stab at a PR if this sounds interesting. Thoughts?

@jankaltoun
Copy link
Owner

Hi Chris! This is a very good insight :). The problem is that the navigation controls like NavigationView and TabView are laid over the view that is presenting the modal. As they're on top of the view, they remain visible and active...

Unfortunately I don't think that there's a reasonable way of solving this. You basically either need to display the modal above everything (e.g. somewhere in the ContentView) or hook into UIKit :(.

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