Skip to content

Commit

Permalink
Merge pull request #54 from JurajB/feature/status_bar_style
Browse files Browse the repository at this point in the history
Set status bar style from topViewController
  • Loading branch information
gaetanzanella authored Jan 10, 2020
2 parents 0f6c03f + 49f2c41 commit 9708fd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Classes/OverlayContainerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class OverlayContainerViewController: UIViewController {
guard isViewLoaded else { return }
oldValue.forEach { removeChild($0) }
loadOverlayViews()
setNeedsStatusBarAppearanceUpdate()
}
}

Expand All @@ -56,6 +57,10 @@ public class OverlayContainerViewController: UIViewController {
return viewControllers.last
}

public override var childForStatusBarStyle: UIViewController? {
return topViewController
}

/// The scroll view managing the overlay translation.
public weak var drivingScrollView: UIScrollView? {
didSet {
Expand Down

0 comments on commit 9708fd9

Please sign in to comment.