AladinWay / TransitionButton

UIButton sublass for loading and transition animation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with shadowed button

ismaiI1 opened this issue · comments

Hi, I really like to TransitionButton and i used it my previous projects :)

Now, I want to use it my new project but when I was add shadow to UIButton (TransitionButton) the animation is very laggy as you can see from below.. If I remove shadow, it's perfectly working.. How can I fix this?

ezgif com-video-to-gif

@Invisible66
TransitionButton doesn't have the cause of that.
try it:

transitionButton.layer.shouldRasterize = true
transitionButton.layer.rasterizationScale = 2.0

I'll try.. thanks..