From 8fb60fde03843fbddf2fc2bf0286a353f66c5b4e Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 2 May 2023 11:30:04 -0500 Subject: [PATCH] added touchable to button Signed-off-by: Matt Bruce --- VDS/Components/Buttons/Button/ButtonBase.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/VDS/Components/Buttons/Button/ButtonBase.swift b/VDS/Components/Buttons/Button/ButtonBase.swift index cafd5cd8..bd00e312 100644 --- a/VDS/Components/Buttons/Button/ButtonBase.swift +++ b/VDS/Components/Buttons/Button/ButtonBase.swift @@ -238,3 +238,12 @@ open class ButtonBase: UIButton, Buttonable, Handlerable, ViewProtocol, Resettab } } + +// MARK: AppleGuidlinesTouchable +extension ButtonBase: AppleGuidlinesTouchable { + + override open func point(inside point: CGPoint, with event: UIEvent?) -> Bool { + Self.acceptablyOutsideBounds(point: point, bounds: bounds) + } + +}