Reactions
Reactions copied to clipboard
Overlay views are not getting removed from window
For each and every ReactionButton there will be an "overlay" view and that overlay view is attached to UIApplication window whenever user started to react.
But there is no where you are removing the "overlay" view from window, so because of this if user reacting on 100 cells will lead to create 100 overlay views and it wont get removed from superview even after user came out from that controller.
Steps To Reproduce:
1)Run the example Project
2)Press "View inside Tableview cells"
3)Do reactions in cells
4)Come out from the screen
5)Run the view inspector from your xcode,
You will get similar to this,
I reacted four times, so four overlays + reaction selector got created.
Solution:
We can remove the "overlay" view whenever ReactionButton removed from it's superview
Hi @yannickl did you get time to go through this issue.