-
Notifications
You must be signed in to change notification settings - Fork 748
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
Status bar does not reappear after messageView disappears. #445
Comments
Can you try 8.0.5? I think this may be the same underlying problem as #446. |
I updated the pod to version 8.0.5, but the problem still persists. |
Same issue and |
This issue also exists with Any ideas on a future fix? |
Also on |
While not ideal you could tap into the var config: SwiftMessages.Config = .init()
config.prefersStatusBarHidden = true // hide status bar during message
config.presentationContext = .window(windowLevel: .statusBar)
config.eventListeners.append { [weak self] event in
if case .didHide = event {
// Unhide the status bar
// This will cause the status bars hidden status to be set by the current viewController.
self?.setNeedsStatusBarAppearanceUpdate()
}
} If you wrap your calls to |
Or in my case, pass a reference of the underlying viewController and call the method on it. |
Building upon the code posted by @dtroupe18, the following code doesn't require a reference to a specific view controller ( config.eventListeners.append { event in
if case .didHide = event {
UIApplication.shared.windows.first { $0.isKeyWindow }?.rootViewController?.setNeedsStatusBarAppearanceUpdate()
}
} |
To cover the status bar I set preferStatusBarHidden to true on the config object. However I found that the Status bar remain hidden even after the message view is retracted. I'm not sure if this is an unintended behavior or I'm not using the framework correctly.
The text was updated successfully, but these errors were encountered: