? //MARK: 彈簧自動放大縮小?
? ? @objc func Action(button: UIButton)
? ? {
? ? ? ? UIView.animate(withDuration: 0.5, delay: 0, usingSpringWithDamping: 6, initialSpringVelocity: 4, options: [], animations: {
? ? ? ? ? ? button.transform=CGAffineTransform(scaleX:1.1,y:1.1)
? ? ? ? },completion:nil)
? ? ? ? UIView.animate(withDuration: 0.5, delay: 0.6, usingSpringWithDamping: 2, initialSpringVelocity: 10, options: [], animations: {
? ? ? ? ? ? button.transform=CGAffineTransform.identity
? ? ? ? },completion:nil)
? ? }