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 Style is overwritten by SwiftEntryKit after the alert is dismissed. #369

Open
p-x9 opened this issue May 23, 2022 · 1 comment

Comments

@p-x9
Copy link

p-x9 commented May 23, 2022

Describe the bug
When UIApplication.shared.statusBar.style is default and SwiftEntryKit is displayed and closed, the style is rewritten to either .lightContent or .darkContent.

related to this codes

public static func statusBar(by appearance: Appearance) -> StatusBar {
guard appearance.visible else {
return .hidden
}
switch appearance.style {
case .lightContent:
return .light
default:
return .dark
}
}

So I thought It needed to add a new case.default to EkAttributes.StatusBar.

To Reproduce
Steps to reproduce the behavior:

  1. Set UIApplication.shared.statusBar.style to .default.
  2. Set the device to dark mode.
  3. show SwiftEntryKit
  4. close Swift
  5. status bar style is overridden to .darkContent

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

iPhone (please complete the following information):

  • iPhone 11 Pro
  • iOS 15.5
  • Xcode Version 13.3.1
  • Dependency Manager Version SPM
  • SwiftEntryKit Release # [e.g. 0.2.0]

Additional context
Add any other context about the problem here.

Screenshots / Video Links

@p-x9 p-x9 changed the title StatusBar appearance is overwritten by SwiftEntryKit after the alert is dismissed. StatusBar Style is overwritten by SwiftEntryKit after the alert is dismissed. May 23, 2022
@aletz
Copy link

aletz commented May 25, 2022

I have the same issue !

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

2 participants