Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Demo/RootViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Photos

final class RootViewController: UIViewController {

override var preferredStatusBarStyle: UIStatusBarStyle {
.lightContent
}

override func viewDidLoad() {
let button = UIButton(type: .system)
button.setTitle("Show", for: .normal)
Expand Down
1 change: 1 addition & 0 deletions Sources/ToastWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ open class ToastWindow: UIWindow {
let orientation = UIApplication.shared.statusBarOrientation
self.handleRotate(orientation)
self.isStatusBarOrientationChanging = false
rootViewController?.setNeedsStatusBarAppearanceUpdate()
}

@objc private func applicationDidBecomeActive() {
Expand Down