Ramotion / folding-cell

:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion

Home Page:https://www.ramotion.com/folding-cell/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIButton not responding inside ContainerView

chikiadel opened this issue · comments

Hi Ramotion,
So i have this VC:
simulator screen shot - iphone xr - 2018-10-18 at 15 00 45

Red is ContainerView with a UIButton inside (Reminde Me)
Green is ForegroundView

**So my issue is the button dont responding to clicks if those is outside of the foregroundView height otherwise respond correctly **

NB: Responding area height equal to foregroundHeight

I solved that problem by adding this line in the awakeFromNib function in my myFoldingCell class:
containerView.isUserInteractionEnabled = true
Now everything function as it is supposed to.