I am trying to transform my UIButton
left when clicked, and I want it to shrink at the same time as well. I have tried the following code, and it does transform left, but I do not know how to shrink the button. How could I shrink and transform the UIButton
.
@IBAction func joinCircleButton(sender: AnyObject) {
let button = sender as UIButton
UIView.animateWithDuration(1.0, animations:{
button.frame = CGRectMake(button.frame.origin.x - 75, button.frame.origin.y,button.frame.size.width, button.frame.size.height)
})
}