Scale UIButton Animation- Swift
Estoy tratando de hacer animación a escala paraUIButton
cuando se hace clic, pero lo que intento lograr es cuando se hace clic en el botón Necesito elUIButton
para ser más pequeño por dentro, vuelve a su mismo tamaño (como una burbuja).
Intenté lo siguiente:
button.transform = CGAffineTransformMakeScale(-1, 1)
UIView.animateWithDuration(0.5, animations: { () -> Void in
button.transform = CGAffineTransformMakeScale(1,1)
})