-
Notifications
You must be signed in to change notification settings - Fork 16
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
hide navigation bar when web modals are displayed #23
Conversation
For some reason I can't see the videos you posted 🙃 But I'd love to see what you were able to do and finesse it! |
func checkoutViewDidToggleModal() { | ||
if blurVisualEffect.superview == nil { | ||
let bounds = self.navigationController?.navigationBar.bounds | ||
blurVisualEffect.frame = bounds ?? CGRect.zero | ||
blurVisualEffect.autoresizingMask = [.flexibleWidth, .flexibleHeight] | ||
self.navigationController?.navigationBar.addSubview(blurVisualEffect) | ||
} else { | ||
blurVisualEffect.removeFromSuperview() | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll have to account for the transition time here
It seems like we lost access to the assets we'd uploaded to GitHub when we made the repo public. I've re-uploaded, and also changed the approach a bit to hide the header instead of blurring it. |
…web modals are shown
261a85e
to
faeda12
Compare
What are you trying to accomplish?
Listen to checkoutBlockingEvents sent from web, and blur the navigation bar, so that we can avoid double headers / close buttons.
I'm very open to better options for the blur effect
Video
updated.mp4
Example of Current Header
Before you deploy