Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statusbar Appearance issue on modal presentation #389

Open
fl034 opened this issue Jul 31, 2020 · 0 comments
Open

Statusbar Appearance issue on modal presentation #389

fl034 opened this issue Jul 31, 2020 · 0 comments

Comments

@fl034
Copy link

fl034 commented Jul 31, 2020

Hey guys,

My view hierarchy is like this

CustomRootViewController
↳ PulleyController Modal Presentation (.overCurrentContext)
     ↳ TabBarController (Pulley's mainContentController)
          ↳ NavigationController
               ↳ ListViewController
                    ↳ DetailViewController pushed onto navigation / custom statusbar style
                    ↳ OtherViewController presented modally (.automatic)

My issue is this:

  • When I have modalPresentationCapturesStatusBarAppearance = true on my pulley controller
    • ✅ My DetailViewController can set it's own status bar style
    • 🚫 But when I present OtherViewController I get the iOS 13 card style with black status bar on black background.
  • When I have modalPresentationCapturesStatusBarAppearance = false on my pulley controller
    • 🚫 My DetailViewController cannot set it's own status bar style
    • ✅ But when I present OtherViewController I get the correct status bar style (light on black)

I tried presenting modally on the pulleyController directly but it didn't help.
Does anyone have an idea how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant