                                toItem: self, attribute: .centerX, multiplier: 1, constant: 0),
             NSLayoutConstraint(item: movingView, attribute: .centerY, relatedBy: .equal,
                                toItem: self, attribute: .centerY, multiplier: 1, constant: 0)])
+
+        if #available(iOS 10, *) {
+            hapticGenerator = UISelectionFeedbackGenerator()
+        }
     }
 
     override open func layoutSubviews() {

            getViewAngle(val)
            rotateMovingView()
            recalculate()
            self.sendActions(for: UIControlEvents.valueChanged)
        }
        return super.continueTracking(touch, with: event)

    var selectedLayer: CALayer?
    var movingView: UIView!
    var angle: CGFloat = 0.0

    var hapticGenerator: NSObject?

    // MARK: - Initialization

