SwiftMessages icon indicating copy to clipboard operation
SwiftMessages copied to clipboard

MessageView not sliding down when using tableView inside it.

Open nobin97 opened this issue 3 years ago • 3 comments

Hi there, Thanks for this great library. I'm facing an issue where I have a xib with a tableview in it, pinned to all sides. And I'm changing the tableview height using content size. so the message views size can vary. Now when the tableview content size is too big the scrolling comes in. Everything works except when I try to scroll down in the tableview(after reaching the top cell), the message view doesn't scroll with it.

Here's the config:

config.presentationStyle = .bottom
config.duration = .forever
config.interactiveHide = true
config.shouldAutorotate = false
config.presentationContext = .window(windowLevel: .normal)
config.dimMode = .color(color: AppColors.black.withAlphaComponent(0.8), interactive: true)

Is this a issue with the library? Or am I missing something? Please advice.

nobin97 avatar Jun 14 '21 10:06 nobin97

I'm not fully understanding the problem. Can you post a screen recording?

wtmoose avatar Jun 14 '21 15:06 wtmoose

https://user-images.githubusercontent.com/28262997/121993920-f48a0400-cdc1-11eb-8dcf-1c41659d7311.mov

So, as you can see I can't dismiss the message view when scrolling down in the tableView. it is working when there is no scrolling in the tableView.

nobin97 avatar Jun 15 '21 04:06 nobin97

That wouldn't just work.

The behavior you're expecting would require coordination between your table view's gesture recognizers (which SwiftMessages has no idea about) and the gesture recognizer used to dismiss the message.

I'm flagging this as a feature request. I'll look into it if I can find some time.

wtmoose avatar Jun 15 '21 14:06 wtmoose