uber / rides-ios-sdk

Uber Rides iOS SDK (beta)
https://developer.uber.com/docs
MIT License
374 stars 124 forks source link

using gesture recognition to press button (Question) #258

Open 1omarsaid opened 5 years ago

1omarsaid commented 5 years ago

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

        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.