So, let it “buzz” when you tap on the login button @IBOutlet protocol Buzzable {} extension Buzzable where Self: UIView { func buzz() { // Animation Logic} }..