mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
Don't use "default" for keyboard/status bar color
This commit is contained in:
parent
f46418534f
commit
1877b46456
@ -883,7 +883,11 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
let normalStatusBarStyle: UIStatusBarStyle
|
||||
switch resolvedStatusBarStyle {
|
||||
case .black:
|
||||
normalStatusBarStyle = .default
|
||||
if #available(iOS 13.0, *) {
|
||||
normalStatusBarStyle = .darkContent
|
||||
} else {
|
||||
normalStatusBarStyle = .default
|
||||
}
|
||||
case .white:
|
||||
normalStatusBarStyle = .lightContent
|
||||
}
|
||||
|
||||
@ -24,7 +24,11 @@ public enum StatusBarStyle {
|
||||
public var systemStyle: UIStatusBarStyle {
|
||||
switch self {
|
||||
case .Black:
|
||||
return .default
|
||||
if #available(iOS 13.0, *) {
|
||||
return .darkContent
|
||||
} else {
|
||||
return .default
|
||||
}
|
||||
case .White:
|
||||
return .lightContent
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user