Skip to content

Statusbar Appearance issue on modal presentation #389

@fl034

Description

@fl034

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions