Я пытаюсь сделать масштабную анимацию для UIButton
, когда ее щелкнул, но то, что я пытаюсь выполнить, - это когда кнопка нажата. Мне нужно, чтобы UIButton
был меньше внутри, а затем возвращается к тому же размер (например, пузырь).
Я попробовал следующее:
button.transform = CGAffineTransformMakeScale(-1, 1)
UIView.animateWithDuration(0.5, animations: { () -> Void in
button.transform = CGAffineTransformMakeScale(1,1)
})