 
 extension WBControlView {
     @objc private func tapAction(sender: UITapGestureRecognizer) {
-        self.removeFromSuperview()
+        //添加扭动动画
+        UIView.animate(withDuration: animationDuration, animations: {
+            self.addButton.transform = CGAffineTransform(rotationAngle: 0)
+        }) { (_) in
+            self.removeFromSuperview()
+        }
+        
     }
     
     @objc private func close(sender: UIButton) {
-        sender.isHighlighted = true
+        //添加扭动动画
+        UIView.animate(withDuration: animationDuration, animations: {
+            self.addButton.transform = CGAffineTransform(rotationAngle: 0)
+        }) { (_) in
+            self.removeFromSuperview()
+        }
     }
 }

        addSubview(addButton)
        addButton.snp.makeConstraints { (make) in
            make.centerX.equalTo(self)
            make.centerY.equalTo(self.snp.bottom).offset(-44)
        }
    }
    

import SnapKit

class WBControlView: UITabBar {
    
    private let animationDuration = 0.65
    
    private lazy var dayLabel: UILabel = {
        let l = UILabel(title: "8", fontSize: 50, fontColor: UIColor.colorWithHex(hex: 0x666666))
