Skip to content

Instantly share code, notes, and snippets.

João Vitor Duarte Mariucio joaoduartemariucio

View GitHub Profile
View buttonAnimationExtension.swift
// Swift 3
extension UIButton {
func pulsate() {
let pulse = CASpringAnimation(keyPath: "transform.scale")
pulse.duration = 0.6
pulse.fromValue = 0.95
pulse.toValue = 1.0
You can’t perform that action at this time.