Using pointInside from Control.

This commit is contained in:
Kevin G Christiano 2020-01-08 10:28:37 -05:00
parent a88bb1e0ff
commit 4a49c40b19

View File

@ -289,13 +289,6 @@ public typealias ActionBlockConfirmation = () -> (Bool)
// MARK: - UIResponder
//--------------------------------------------------
override open func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
let faultTolerance: CGFloat = 20.0
let area = bounds.insetBy(dx: -faultTolerance, dy: -faultTolerance)
return area.contains(point)
}
open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
UIView.animate(withDuration: 0.1, animations: {