Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using gesture recognition to press button (Question) #258

Open
1omarsaid opened this issue Apr 13, 2019 · 0 comments
Open

using gesture recognition to press button (Question) #258

1omarsaid opened this issue Apr 13, 2019 · 0 comments

Comments

@1omarsaid
Copy link

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.

@1omarsaid 1omarsaid changed the title using gesture recognition to press button using gesture recognition to press button (Question) Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant