SwiftKickMobile / SwiftMessages

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

The new SwiftMessage Custom View didn't show after hiding the old one in Version 8.0.4 #444

Closed MoElnaggar14 closed 3 years ago

MoElnaggar14 commented 3 years ago

I don't know what's the changes in the latest version.

it's working fine in Version 8.0.3 or lower.

wtmoose commented 3 years ago

Could you share some details so I can try to reproduce your problem? If you could attach a sample project, that would be great.

MoElnaggar14 commented 3 years ago

I'm trying to hide a custom MessageView and show a new one

UIView.animate(withDuration: 0.01) {
// hide the old view
SwiftMessages.hide()
} completion: { _ in
// i already declared the config and view
SwiftMessages.show(config: config, view: view)
}
wtmoose commented 3 years ago

Curios why you're showing inside of an animation block? Not sure what that's intended to accomplish.

But could you try 8.0.5? I haven't reproduced your issue, but 8.0.4 introduced a bug that was affecting folks in different ways.

MoElnaggar14 commented 3 years ago

it's not working without the animation block, I don't know why.

I'll try with 8.0.5 and back to you

wtmoose commented 3 years ago

If it isn't working (though I'm not exactly sure what "it" means), something is horribly wrong. Take a look at the demo app.

MoElnaggar14 commented 3 years ago

Okay, I'll take a look. Thanks for your quick response. I just updated and tested the latest version and everything looks good 🎉 .

I'll close the issue.