I'm struggling with my Custom Keyboard.
If i add shadow for UIButton object, and turn on AssistiveTouch, it'll get lag during the animation.
The shadow code is here
button.layer.shadowRadius = 3.0f;
button.layer.shadowColor = [UIColor blackColor].CGColor;
button.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
button.layer.shadowOpacity = 0.5f;
button.layer.masksToBounds = NO;
Any better solution to add shadow to UIButton without having lag with AssistiveTouch?