You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if you call layoutsubviews while the button is animating, setStyle(buttonStyle, animated: false) will be called and hence the animation will complete instantly.
Since my button animates the view it is in, layoutsubviews is called several times during the transition and hence the button doesn't work.
The text was updated successfully, but these errors were encountered:
I know this is very hackish code, but it emulates what is occurring with my issue. Copy it into the example project's viewcontroller.
I'm using the SWRevealViewController in my project and this button animates the reveal of the rear controller. During this animation, the view containing the dynamic button has layoutSubviews() called multiple times during the animation.
Currently, if you call layoutsubviews while the button is animating,
setStyle(buttonStyle, animated: false)
will be called and hence the animation will complete instantly.Since my button animates the view it is in, layoutsubviews is called several times during the transition and hence the button doesn't work.
The text was updated successfully, but these errors were encountered: