0

I have table view controller and which will show all the chatting messages. Inside that tableview controller I have stickers view where user can send stickers. I want to detect swipe down function in tableview and if user create swipe downs, I want to close stickers view if sticker view is already opened. Tableview has scrollview event also that's why I cannot detect swipe down event. My sticker view is same as fb messenger sticker view.

Please see the attached screenshot for sticker view

Aye
  • 217
  • 3
  • 13

2 Answers2

1

Instead of using a gesture, you should use the UIScrollviewDelegate methods to determine if the tableview has scrolled down, then trigger the desired behavior you want.

See this answer on how to implement it

Community
  • 1
  • 1
Fonix
  • 10,588
  • 2
  • 41
  • 67
0
  • for hiding inputview you can use tableview ' dismiss on dram ' attribute from storyboard,

storyboard image

Yogesh Makwana
  • 440
  • 4
  • 15