You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @wtmoose, I'm experiencing a problem with statusBar style when I present a centered swiftMessage in a view controller presented with .pageSheetmodalPresentationStyle. I attach a screen below to better explain the problem
I slightly modified the demo project to obtain it. I attach it too.
Practically, the status bar is black on a black background.
To solve the problem I have to pass config.preferredStatusBarStyle = UIApplication.shared.delegate?.window??.windowScene?.statusBarManager?.statusBarStyle during swiftmessage configuration.
I'm wondering if it's better changing the preferredStatusBarStyle overriding implementation of WindowViewController to something like
override open var preferredStatusBarStyle: UIStatusBarStyle {
if #available(iOS 13.0, *) {
return config.preferredStatusBarStyle ?? UIApplication.shared.delegate?.window??.windowScene?.statusBarManager?.statusBarStyle ?? super.preferredStatusBarStyle
} else {
return config.preferredStatusBarStyle ?? UIApplication.shared.statusBarStyle
// OR
// return config.preferredStatusBarStyle ?? super.preferredStatusBarStyle
}
}
I'd really like your opinion about this. Is this an iOS bug?
The text was updated successfully, but these errors were encountered:
Hi @wtmoose, I'm experiencing a problem with statusBar style when I present a centered swiftMessage in a view controller presented with
.pageSheet
modalPresentationStyle
. I attach a screen below to better explain the problemI slightly modified the demo project to obtain it. I attach it too.
SwiftMessages-master.zip
Practically, the status bar is black on a black background.
To solve the problem I have to pass
config.preferredStatusBarStyle = UIApplication.shared.delegate?.window??.windowScene?.statusBarManager?.statusBarStyle
during swiftmessage configuration.I'm wondering if it's better changing the
preferredStatusBarStyle
overriding implementation ofWindowViewController
to something likeI'd really like your opinion about this. Is this an iOS bug?
The text was updated successfully, but these errors were encountered: