Commit ea0e0027 by Daniel Dahan

Fixed iPhoneX tioLayoutGuide constraints not properly being set for StatusBarController types.

parent 1050a898
## 2.12.11
* Fixed iPhoneX tioLayoutGuide constraints not properly being set for StatusBarController types.
## 2.12.10
* [samples-issue-78](https://github.com/CosmicMind/Samples/issues/78): Fixed iPhoneX bottomLayoutGuide constraints not properly being set.
......
......@@ -94,6 +94,11 @@ open class StatusBarController: TransitionController {
statusBar.frame.size.width = view.bounds.width
if #available(iOS 11, *) {
let v = topLayoutGuide.length
statusBar.frame.size.height = 0 < v ? v : 20
}
switch displayStyle {
case .partial:
let h = statusBar.bounds.height
......@@ -122,7 +127,6 @@ fileprivate extension StatusBarController {
statusBar.backgroundColor = .white
}
statusBar.frame.size.height = 20
view.addSubview(statusBar)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment