SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.3k stars 742 forks source link

SwiftMessage not covering status bar in iOS 13 #373

Closed sbrioux closed 4 years ago

sbrioux commented 4 years ago

So I am noticing currently in my app, the SwiftMessage isn't covering the status bar fully on iOS 13. Also to note is that the app does have dark mode disabled using the plist configuration.

The issue is mostly noticeable on iOS devices with out the notch. The screen shot is from an iPhone 8

iOS 13.3.1 image

The following is the code I am using to display the message.

            let msgView = MessageView.viewFromNib(layout: .statusLine)
            msgView.backgroundView.backgroundColor = .white
            msgView.bodyLabel?.textColor = .black
            msgView.configureContent(body: "NO_INET".localized())

            var config = SwiftMessages.defaultConfig
            config.duration = .forever
            config.presentationContext = .window(windowLevel: .statusBar)
            config.preferredStatusBarStyle = .lightContent

            SwiftMessages.show(config: config, view: msgView)

Did I do something wrong or is this a bug?

wtmoose commented 4 years ago

Dupe of #368