using gesture recognition to press button (Question)
1omarsaid opened this issue · 0 comments
1omarsaid commented
Hello,
I am making an application for those that are visually impaired and I am looking for a way to press the button using a gesture recognition, looking at the RideRequestButton I see the following:
super.setup()
addTarget(self, action: #selector(uberButtonTapped(_:)), for: .touchUpInside)
sizeToFit()
}
```
where uberButtonTapped is where
``` @objc func uberButtonTapped(_ sender: UIButton) {
rideParameters.source = RideRequestButton.sourceString
requestBehavior.requestRide(parameters: rideParameters)
}
I want to be able to execute the uberButtonTapped in a selector function that I specify with my gesture recognizer.