 }
 
 
+
+

            return
        }
        
        func onTap(sender: AnyObject?) {
            
            self.userInteractionEnabled = false
            
            let duration: Double = 0.3
            
            UIView.animateWithDuration(duration/2, animations: {
                self.transform = CGAffineTransformMakeScale(0.95, 0.95)
                
            }) { complete in
                
                self.onTapCallback?(animatedButton: self)
                
                UIView.animateWithDuration(duration/2, animations: {
                    self.transform = CGAffineTransformIdentity
                }) { complete in
                    self.userInteractionEnabled = true
                }
            }
        }
    }
    
    func onTap(sender: AnyObject?) {

        let duration: Double = 0.3
        
        UIView.animateWithDuration(duration/2, animations: {
            self.transform = CGAffineTransformMakeScale(self.preferredShrinkedSize.width, self.preferredShrinkedSize.height)
            self.customAnimationsFirstHalf?()
            
        }) { complete in
            
            if self.callbackFireOptions == .AfterFirstHalf {
                self.onTapCallback?(animatedButton: self)
            }
            
            UIView.animateWithDuration(duration/2, animations: {
                self.transform = CGAffineTransformIdentity
                self.customAnimationsSecondHalf?()
                
            }) { complete in
                self.userInteractionEnabled = true
                if self.callbackFireOptions == .AfterSecondHalf {
                    self.onTapCallback?(animatedButton: self)
                }
            }
        }
    }
