SwiftKickMobile / SwiftMessages

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

Full width bottom card in iOS 13 (7.0.1 version) #388

Closed vivek4292 closed 4 years ago

vivek4292 commented 4 years ago

How can I use full width bottom card using 7.0.1 version. Here is my code.

var config = SwiftMessages.defaultConfig config.presentationStyle = .bottom config.duration = .forever config.dimMode = .none config.interactiveHide = false let view = MessageView.viewFromNib(layout: .cardView) view.configureTheme(theme, iconStyle: .default) SwiftMessages.show(config: config, view: view)

wtmoose commented 4 years ago

What is the problem?

vivek4292 commented 4 years ago

2020-04-08

This is how it's being displayed with your latest release. Before that it was like in below screenshot. IMG_0916

Did no changes in code at all. Just using your latest release and this happened.

wtmoose commented 4 years ago

Gotcha. The design was changed for iPad because the card spanning the full width on iPad isn't a good design.

If you want a different design, copy CardView.xib into your project and modify it. What you'd want to do is remove the constraint overrides for regular size class on the CornerRoundingView.