Skip to content

App crashes when DarkTheme enabled on iOS 13 #180

@MichalRogowski

Description

@MichalRogowski

Describe the bug
App crashes when DarkTheme enabled on iOS 13,
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
To Reproduce
Steps to reproduce the behavior:

  1. Install app from Xcode 11.0+
  2. Go to Sign in screen
  3. Sign in to account with dark theme enabled
  4. App crashes

Expected behavior
App should not crash

Smartphone (please complete the following information):

  • Device: iPhone 11
  • OS: iOS 13.1
  • Version 1.2.1 Build 13

Additional context
Crash is caused by this line
guard let statusBarView = UIApplication.shared.value(forKeyPath: "statusBarWindow.statusBar") as? UIView else {

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs; wait for 'approved' label to begin work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions