Skip to content

Commit b12e2cc

Browse files
committed
Preserve existing status bar visibility
1 parent 6fd3d79 commit b12e2cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SwiftMessages/WindowViewController.swift

+4
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ class WindowViewController: UIViewController
4343
override func preferredStatusBarStyle() -> UIStatusBarStyle {
4444
return statusBarStyle ?? UIApplication.sharedApplication().statusBarStyle
4545
}
46+
47+
override func prefersStatusBarHidden() -> Bool {
48+
return UIApplication.sharedApplication().statusBarHidden
49+
}
4650
}

0 commit comments

Comments
 (0)