SwiftEntryKit icon indicating copy to clipboard operation
SwiftEntryKit copied to clipboard

StatusBar Style is overwritten by SwiftEntryKit after the alert is dismissed.

Open p-x9 opened this issue 3 years ago • 1 comments

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 https://github.com/huri000/SwiftEntryKit/blob/cf1cde7a70d64af8c0c13b11e8dfd5bf2f190e38/Source/Model/EntryAttributes/EKAttributes%2BStatusBar.swift#L58-L68

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 avatar May 23 '22 11:05 p-x9

I have the same issue !

aletz avatar May 25 '22 20:05 aletz